Garry's Mod Wiki

Operators & Aliases

Operators & Aliases

Garry's Mod adds a custom operator and aliases various native Lua operators.

Garry's Mod
Operator
Note
continue Consider using goto for repeat-until loops instead.
Lua Garry's Mod
Alias
and &&
or ||
not !
~= !=
--[[ ]] /* */
-- //
If you want to keep your code compatible with other Lua environments,
it's recommended to avoid using these custom operators & aliases.