Symbols and operators - IS4Code/Sona GitHub Wiki
This table lists all the operators in the language, from the lowest priority to the highest.
Category | Operators | |||
---|---|---|---|---|
Logical | and |
or |
not |
if …elseif …else
|
|| |
||||
&& |
||||
Relational |
== , != , ~= , < , <= , > , >=
|
|||
Range/concatenation | .. |
|||
Bitwise/functional | | |
|||
^ |
||||
& |
||||
<< , >>
|
||||
Arithmetic |
+ , -
|
|||
* , / , %
|
||||
Unary |
+ , - , ~ , ! , #
|
|||
Access |
. , : , ( …) , [ …]
|