Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

2 answers

✓ Accepted answer
if hi ~= true then

...

2 comments

0

Thats bascially it, ~= .

0

Thought that meant approximately... I hesitated trying that one. Lol. Thanks.

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).

1 comment

0

BlueTaslem is correct by the way.

This discussion is preserved as it was. New answers, comments, and votes are closed.