01-04-2010, 09:15 PM
Code:
if number%2==0
#even
else
#odd
end
How to check if the value of a number is an even or odd number?
|
« Next Oldest | Next Newest »
|
Messages In This Thread |
How to check if the value of a number is an even or odd number? - by PK8 - 01-04-2010, 08:46 PM
[Resolved] How to check if the value of a number is an even or odd number? - by DerVVulfman - 01-04-2010, 09:07 PM
[Resolved] How to check if the value of a number is an even or odd number? - by Charlie Fleed - 01-04-2010, 09:15 PM
[Resolved] How to check if the value of a number is an even or odd number? - by DerVVulfman - 01-04-2010, 09:28 PM
[Resolved] How to check if the value of a number is an even or odd number? - by fgsfds - 01-04-2010, 10:06 PM
[Resolved] How to check if the value of a number is an even or odd number? - by PK8 - 01-04-2010, 10:45 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Pausing script from processing for a number of frames | firestalker5 | 8 | 11,147 |
04-25-2011, 10:04 AM Last Post: deValdr |
|
Check player facing direction | desbrina | 5 | 7,577 |
06-20-2010, 09:58 PM Last Post: deValdr |
|
how to check if a method has been aliased? | Charlie Fleed | 6 | 9,178 |
01-21-2010, 06:26 PM Last Post: DerVVulfman |
|
How to check if actor has certain stat(s) with RGSS? | Twin Matrix | 4 | 9,714 |
01-04-2009, 05:35 PM Last Post: Twin Matrix |