I was looking at some other scripts, and looked on the actual wiki, and didn't seem to find out what "~" meant. Can anyone help me answer this?
~
is part of a conditional operator. It is also known as "Not"
Example of '~':
~=
is like saying "Not equal"
1 | if (x ~ = 0 ) then --If x "Is NOT equal to" 0 |
2 | --Code |
3 | end |
You can also use not
in other parts of the conditional statement to determine if something is "Not".
Example of 'not':
1 | if ( not x) then --If NOT true, then |
2 | --Code |
3 | end |
Let me know if you have any other questions!