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
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 14 Aug 2015 10:18 PM |
| i % 2 == 0 then even else odd |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 14 Aug 2015 10:21 PM |
| Lol hackforum? Nah I think i'll stay |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 14 Aug 2015 10:24 PM |
| No, you're not allowed to do that. |
|
|
| Report Abuse |
|
|
| |
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
| |
|
| |
|
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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|