What does the sign "~" does?

The title says it, what “~” does?, like i got this example, but what it does, i am not sure if is a math sign

local number = 1

if number ~= 1 then
   print("true")
end

~= means not equal to

website about math signs on roblox, hope it helps

2 Likes

This means if it is not equal to, for example if an object is ~= nil then that means it exists since nil is something that does not exist.

1 Like