# Integer check ::: Easy Q.!

**URL:** <https://forum.kirupa.com/t/integer-check-easy-q/294467>\
**Category:** Uncategorized\
**Created:** [August 14, 2009, 11:25am UTC](https://forum.kirupa.com/t/integer-check-easy-q/294467 "2009-08-14T11:25:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Post date:** [August 14, 2009, 11:25am UTC](https://forum.kirupa.com/t/integer-check-easy-q/294467/1 "2009-08-14T11:25:30Z")

</div>

Hey there … I want to test within a for loop, if my number is odd or even …  
so is there a nice easy way to ask IF the number at hand IS an Integer or not, when divided by two???

```auto
for(i=0;i<6;i++)
{
if (i/2 is an integer)
{
//celebrate
}
else
{
//don't
}
}

```

thanks for zeHelp
