Prev Previous Post   Next Post Next
Old 03-31-2010, 02:05 PM
ZaPx64's Avatar
ZaPx64 ZaPx64 is offline
Join Date: Nov 2009
Location: Germany
Posts: 136

You might want to use the modulo operator (%):

if number % 2 == 1 then
  -- number is odd
  -- number is even
Zen X-Fi2 Apps: Notee-fi (notepad) | TicTacToe | Mahjongg - a free real-time strategy game.
Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 12:15 PM.