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

What is the difference between "==" and "~="? [closed]

Asked by
IcyEvil 260 Moderation Voter
10 years ago

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.

Locked by Articulating

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

2 answers

Log in to vote
3
Answered by
haillin 60
10 years ago

= equals

== is equaled too

~= is not equaled too

0
Thank you IcyEvil 260 — 10y
1
Nice and simle anwer. I like it. ConnorVIII 448 — 10y
Ad
Log in to vote
1
Answered by 10 years ago

"==" 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"

0
THANKS! :D IcyEvil 260 — 10y