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

What does this mean??? ~=

Asked by 10 years ago

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

~=

thanks

6 answers

Log in to vote
3
Answered by
Moosee 62
10 years ago

~= 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.

0
Thanks SirKitten2000 0 — 9y
Ad
Log in to vote
2
Answered by
c0des 207 Moderation Voter
10 years ago

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

Log in to vote
1
Answered by
Dummiez 360 Moderation Voter
10 years ago

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
0
thnx SirKitten2000 0 — 10y
0
Also, "a ~= 1" is the same as "not (a == 1)". duckwit 1404 — 10y
Log in to vote
0
Answered by 10 years ago

~ Not = Equal

Log in to vote
0
Answered by 10 years ago

~= means "not equal to"

For example:

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

Log in to vote
0
Answered by 10 years ago

~= Means Not Equal

that means it returns false if the value is equal

Answer this question