Hi im kinda new to LUA and i wanna know what this does
~=
thanks
Hi im kinda new to LUA and i wanna know what this does
~=
thanks
~= means Not equal too.
If your asking about =, then, An equals sign can do many things.
Chuck = game.Workspace
Chuck = true
I'm sure there is many more uses for =, I only know a few.
Hope I was a help.
Here is a Wiki section that will help you with all operators and their meanings. http://wiki.roblox.com/index.php?title=Operators
Glad I could help. A thumbs up wouldn't hurt. :)
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
thnx
Also, "a ~= 1" is the same as "not (a == 1)".
~ Not = Equal
~= 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.
1 comment
Thanks