OKevinO
|
  |
| Joined: 05 May 2010 |
| Total Posts: 1036 |
|
|
| 24 Jun 2015 04:23 PM |
How do i write every multiple of a number so i can compare it? For example:
if ThisVal == [Multiple of 6] then --would do something every time the value hits a multiple of 6 end |
|
|
| Report Abuse |
|
|
murcury57
|
  |
| Joined: 30 Jun 2010 |
| Total Posts: 90299 |
|
| |
|
OKevinO
|
  |
| Joined: 05 May 2010 |
| Total Posts: 1036 |
|
| |
|
OKevinO
|
  |
| Joined: 05 May 2010 |
| Total Posts: 1036 |
|
|
| 24 Jun 2015 04:27 PM |
| But it worked, so thanks anyway :) |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 24 Jun 2015 04:27 PM |
% is the modulus operator
It basically divides the two numbers and returns the remainder. If it returns 0, that mains there is no remainder and it is a multiple of the second number |
|
|
| Report Abuse |
|
|