Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I check to see if an int value is greater than or equal to another int value?

Asked by 5 years ago
Edited 5 years ago

This is how I think it is, but it gives me an error.

if XPNow.Value == or >= XPNeeded.Value then

end
0
And XPNow and XPNeeded are variables. protectiverobos -50 — 5y
0
Get rid of the "==" and the "or" and you will be good to go. User#21908 42 — 5y
0
>= includes both. If you just wanted greater than, you would use >. User#21908 42 — 5y
0
Oh, thanks. protectiverobos -50 — 5y

Answer this question