Operators

Syntax: Operator:
<singular operator>
| $ \( <expression>* \)
| $ \[ <expression>* \]
| $ \{ (<expression>*) | (<identifier> : <expression>)* \}

Here is a list of all operators.

OperatorMeaningExamplePrecedence (left and right)
.access member[1,2].len$()23,24
::access memberList::len$([1,2])23,24
<-set meta-table{} <- MetaTable21,22
notlogic notnot false19 (prefix)
$()function callf$()20 (postfix)
$[]index arraylist$[0]20 (postfix)
${}data constructorJust${1}20 (postfix)
**power2**317,18
*multiply2*315,16
//integer division7//315,16
/division7/315,16
%modular5%215,16
+addiction1+213,14
-subtract or negative value1-2 -219 (prefix) 13,14 (infix)
>greater than5>411,12
>=greater than or equal to4>=311,12
<less than2<611,12
<=less than or equal to5<=511,12
==equal to3==311,12
iscompare reference{} is []11,12
<>not equal to5<>411,12
andlogic andtrue and false9, 10
orlogic ortrue or false7,8
..range1..105,6
,create a tuple1,2,31,2
=assign value to variablea=54,3