Garry's Mod Wiki

Revision Difference

Specific_Operators#522309

<cat>Dev</cat> Garry's Mod features a set of non-default operators and aliases of already existing ones. The implemented operators include Operator | -----------| | continue | | `continue` | ⤶ <warning>`continue` may work incorrectly, consider using `goto`</warning>⤶ ⤶ The implemented aliases are as following⤶ ⤶ ⤶ The implemented aliases are as following⤶ ⤶ ⤶ Operator | Alias | ----------|------- | | and | && | | not | ! | | ~= | != | | --[[ ]] | /* */ | | -- | // | | `and` | `&&` | | `or` | `||` | | `not` | `!` | | `~=` | `!=` | | `--[[ ]]` | `/* */` | | `--` | `//` |⤶ <warning> It is suggested to avoid using the custom operators if you wish to use your scripts outside of Garry's Mod, as they are incompatible with standard Lua. </warning>