mindfriction
February 28th, 2003, 01:21 AM
Hi,
I need to check whether a varaible is an odd number, as I alternate which part of the movie I play.
something like....
if(i=oddNumb)
{
gotoAndPlay(...)
}
else
{
gotoAndPlay(...)
}
I was thinking if i could take the value of the variable divide it by 2, and then check whether the answer is a decimal and then I could tell if it was an odd number., But Im not sure how to do this even.
Your help appreciated
I need to check whether a varaible is an odd number, as I alternate which part of the movie I play.
something like....
if(i=oddNumb)
{
gotoAndPlay(...)
}
else
{
gotoAndPlay(...)
}
I was thinking if i could take the value of the variable divide it by 2, and then check whether the answer is a decimal and then I could tell if it was an odd number., But Im not sure how to do this even.
Your help appreciated