Posted 27 March 2012 - 04:07 PM
I'm not sure how I want to say this but..
Is there a way to make a If statement that will run one command when a variable is a odd and another command when the variable is a even
lets say ..
Plz pay no atention to spelling and the failure code up there..
I just want to know what I would use instead of "odd" and "even"
PS My english might be suckish…
Also.. how to I set something to be a spoiler.. i dont want anyone to read through the code if they already know what i mean..
hope there is something like this :o/>/>
Is there a way to make a If statement that will run one command when a variable is a odd and another command when the variable is a even
lets say ..
y=5
thenumber=tonumber(y)
if thenumber="odd" then
print("durp")
else if thenumber="even" then
print("not durp")
end
Plz pay no atention to spelling and the failure code up there..
I just want to know what I would use instead of "odd" and "even"
PS My english might be suckish…
Also.. how to I set something to be a spoiler.. i dont want anyone to read through the code if they already know what i mean..
hope there is something like this :o/>/>