Operators - xkp/Doc GitHub Wiki
The list:
+ - / * %
++ --
! == != > < >= <= && ||
as is has
[]
= += -= *= /=
>> <<
&
Peculiarities:
Typecast operator
var a = 10;
int b = a as int;
failure to cast will result in null
Typequery operator
if (foo is int)
{
do_magic();
}
Queries where a specific string represents a method or a property of certain object
if (foo has "do_magic")
{
foo.do_magic();
}
Aside of their normal arithmetic function, they're used to modify arrays
array<int> bar = [];
bar += 3;
Reserved