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

Stupid question (Very basic) How do you write "Not equal to" in a if statement again?

Asked by 9 years ago

These are the 20 characters in order to ask a question...

2 answers

Log in to vote
2
Answered by
Adryin 120
9 years ago
if hi ~= true then

...

0
Thats bascially it, ~= . Adryin 120 — 9y
0
Thought that meant approximately... I hesitated trying that one. Lol. Thanks. Orlando777 315 — 9y
Ad
Log in to vote
5
Answered by
BlueTaslem 18071 Moderation Voter Administrator Community Moderator Super Administrator
9 years ago

a ~= b is a is not equal to b.

Most programming languages use !=; Lua just decides to be different.


Alternatively you could use not (a == b).

0
BlueTaslem is correct by the way. Adryin 120 — 9y

Answer this question