hot to check odd or even

Nerfpl

New Member
Reaction score
53
i dont know if this name like that but i mean: how to check if integer is divideable by 2, like 2,4,6,8 etc and is not when 1,3,5,7 etc
i need such condition but cant find it anywhere
 

Builder Bob

Live free or don't
Reaction score
249
I'll just write this out in plain text and you can convert it to GUI

you want to check if the variable Number is odd or even.

if Number / 2 == Real2Integer( Integer2Real(Number) / 2.00 ) then

even

else

odd

end

Edit: Slapshot136's is better.
 

Nerfpl

New Member
Reaction score
53
thanks for reply's but i actually found that
ModuloInteger(X, 2) returns 0 when is divideable and 1 when is not
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top