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

What does this mean??? ~=

Hi im kinda new to LUA and i wanna know what this does

~=

thanks

6 answers

✓ Accepted answer

~= means Not equal too.

If your asking about =, then, An equals sign can do many things.

  1. Make a variable
Chuck = game.Workspace
  1. Make a statement true.
Chuck = true

I'm sure there is many more uses for =, I only know a few.

Hope I was a help.

1 comment

0

Thanks

The ~= means 'not equal to'.

So, for example:

local a = 1

if a ~= 1 then
print('This will never print')
else
print('This will print')
end

2 comments

0

thnx

0

Also, "a ~= 1" is the same as "not (a == 1)".

~= means "not equal to"

For example:

if 2*2 ~= 6 then print("THESE AREN'T EQUAL!") end

~= Means Not Equal

that means it returns false if the value is equal

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