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 » Scripters
Home Search
 

Re: How to find if a number is odd or even?

Previous Thread :: Next Thread 
VisionST is not online. VisionST
Joined: 30 Jun 2015
Total Posts: 384
14 Aug 2015 10:17 PM
For my loop, for i=1, 50 do, I want to detect whether i is an even or odd number. How would I do this?
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
14 Aug 2015 10:18 PM
i % 2 == 0 then even else odd
Report Abuse
MasterLogical is not online. MasterLogical
Joined: 14 Jun 2015
Total Posts: 379
14 Aug 2015 10:19 PM
J

________________
O
1 3 5 7 9
________________
E
2 4 6 8


There's a chart to find your odd/even
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
14 Aug 2015 10:20 PM
^ go back to whatever god-awful hackforum you came from
Report Abuse
MasterLogical is not online. MasterLogical
Joined: 14 Jun 2015
Total Posts: 379
14 Aug 2015 10:21 PM
Lol hackforum? Nah I think i'll stay
Report Abuse
morash is not online. morash
Joined: 22 May 2010
Total Posts: 5834
14 Aug 2015 10:24 PM
No, you're not allowed to do that.
Report Abuse
MasterLogical is not online. MasterLogical
Joined: 14 Jun 2015
Total Posts: 379
14 Aug 2015 10:26 PM
I'm still here aren't I?
Report Abuse
morash is not online. morash
Joined: 22 May 2010
Total Posts: 5834
14 Aug 2015 10:26 PM
No. No, you're not.
Report Abuse
MasterLogical is not online. MasterLogical
Joined: 14 Jun 2015
Total Posts: 379
14 Aug 2015 10:28 PM
Yes, Yes, I am
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
14 Aug 2015 10:28 PM
You obviously don't know how to script if you list each even/odd number and try to work from there.
Report Abuse
MasterLogical is not online. MasterLogical
Joined: 14 Jun 2015
Total Posts: 379
14 Aug 2015 10:32 PM
It was just a joke, It's the way they teach kinder gardeners odds/evens -_- Thought you would be old enough to know what I meant obviously not.
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
14 Aug 2015 10:36 PM
You are an incoherent nobody. How could I possibly tell whether you are joking or not?
Report Abuse
71428 is not online. 71428
Joined: 06 Aug 2015
Total Posts: 339
14 Aug 2015 10:39 PM
1. Take the integer
2. Turn it into a string
3. Find the last letter of the string
4. Use MasterLogical's chart to find if it is even or odd
5. The number is even or odd based on above
6. ????
7. Profit
Report Abuse
MasterLogical is not online. MasterLogical
Joined: 14 Jun 2015
Total Posts: 379
14 Aug 2015 10:42 PM
Lol I'm a nobody? Haha okay buddy whatever helps you sleep at night I bet you say that to distract you from the fact your mother doesn't love you due to the fact you were a drunk mistake
Report Abuse
cntkillme123 is not online. cntkillme123
Joined: 10 Feb 2013
Total Posts: 539
14 Aug 2015 10:46 PM
"Lol I'm a nobody? Haha okay buddy whatever helps you sleep at night I bet you say that to distract you from the fact your mother doesn't love you due to the fact you were a drunk mistake"
You're so damn stupid.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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