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

Check if a number is not more than another number?

Asked by 8 years ago

So I know there is like if humanoid.Health ~= 1337 then but how would I be able to check if say their health is not more than 1337? There is no ~> so how would I go about doing that? Any help is appreciated :)

2 answers

Log in to vote
2
Answered by
BlueTaslem 18071 Moderation Voter Administrator Community Moderator Super Administrator
8 years ago

You can use not itself,

if not (x > 1337) then

But "x is not more than 1337" is the same as "x is less than or equal to 1337", which is an operator in Lua:

if x <= 1337 then
Ad
Log in to vote
-1
Answered by 8 years ago

Not sure if this'll work but maybe try using =<1337

Answer this question