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

What is the difference between "==" and "~="?

I know that == goes for if statements Not much else I know about == I know Nothing about ~= though And I need to know the difference Please This would be helpful.

2 answers

✓ Accepted answer

= equals

== is equaled too

~= is not equaled too

2 comments

0

Thank you

1

Nice and simle anwer. I like it.

"==" means if a value it's equal to something a function will run for example "if Workspace.You == nil then -- nil means 0/nothing print("player does not exist") end" and "~=" means if a value it's not equal to something then a function will run for example "if Workspace.You ~= nil then print("Player Exist") end"

1 comment

0

THANKS! :D

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