• what is ~=
    6 replies, posted
I can't correctly google it. Can someone explain. Does it mean the same thing as != * Equal to (==) * Not equal to (!=) * Greater than (>) * Greater than or equal to (>=) * Less than (<) * Less than or equal to (<=) * What is this? (~=)
It's also not equal to. "Proper" Lua uses ~= , garry added != for convenience.
I believe it is not equal to, != isnt directly supported by lua tl;dr use ~=
Awesome, thanks!
I think if it's based of some C language it's a bitwise inverse operator or something, not sure.
Same thing with && I believe, not directly in lua, but added for convenience.
[QUOTE=TheNerdPest14;24224353]I think if it's based of some C language it's a bitwise inverse operator or something, not sure.[/QUOTE] Yeah, C uses ~ as a bitwise negation operator, which basically flips every bit. Therfore, ~= wouldn't make sense in C.
Sorry, you need to Log In to post a reply to this thread.