generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: How to check if number is even or odd

Previous Thread :: Next Thread 
RetiredColonel is not online. RetiredColonel
Joined: 10 Feb 2014
Total Posts: 2230
20 Sep 2014 01:47 PM
I asked this already but I forgot e.e
Report Abuse
SirNoobly is not online. SirNoobly
Joined: 01 Oct 2009
Total Posts: 253
20 Sep 2014 01:47 PM
If number / 2 is an integer?
Report Abuse
RetiredColonel is not online. RetiredColonel
Joined: 10 Feb 2014
Total Posts: 2230
20 Sep 2014 01:50 PM
nvm found what I need on wiki
.-.
Report Abuse
Krypticon is not online. Krypticon
Joined: 12 Feb 2014
Total Posts: 680
20 Sep 2014 02:02 PM
Modulo. :)
Report Abuse
juniorjfive is not online. juniorjfive
Joined: 05 Jan 2010
Total Posts: 671
20 Sep 2014 02:15 PM
local Numbers=20
local Odd,Even={},{}
for i=1,Numbers do
if i%2==0 then
table.insert(Even,i)
else
table.insert(Odd,i)
end
end
print('Odd Numbers:',table.concat((Odd),','))
print('Even numbers:',table.concat((Even),','))
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image