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

Was this scripted right?

Asked by 9 years ago

I have this line in a script that i want to act like a greater than or equal to sign (Like in aglebra). Just wanted to know if it would work.

elseif player.Tools.HighJump.Value > 1 or player.Tools.HighJump.Value == 1 then

1 answer

Log in to vote
0
Answered by 9 years ago

This will work. It can be shortened though. elseif player.Tools.HighJump.Value >= 1 then

This instead tests if its greater than or equal to, removing the need for an or.

This is my first answer so I'm sorry if its weird.

0
its okay, maybe you can help me out with my other question too :p (Deals with same script) CarterTheHippo 120 — 9y
Ad

Answer this question