even or odd number

hey,
i’m working on a little project to know how i can check a number if it’s odd or even, so the variable knows what to do, how can i do it the easiest?

already thank you to you all who can help me

Use the Mod operator http://developer.xojo.com/mod for example

If x Mod 2 = 0 Then Return "Even" Else Return "Odd" End If

thanks, i just try if it’s true or not true

Good to see you were able to answer your own question without Wayne’s help. /s