Integer check ::: Easy Q.!

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???

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

thanks for zeHelp