Operator | Description |
++ -- | Auto-increment and auto-decrement, both prefix and postfix |
+ - | Unary plus and minus |
! ~ | Logical negation and binary inversion (one’s complement) |
** | Exponentiation |
* / % | Multiplication, division, modulus |
<< >> | Bitwise left shift, bitwise right shift |
== != | Equality, inequality |
& | Bitwise AND |
^ | Bitwise exclusive OR |
│ | Bitwise OR |
&& | Logical AND (short circuit) |
││ | Logical OR (short circuit) |
?: | Inline conditional evaluation |
, | Sequential expression evaluation |
prompt> let "i = 10 + 2"
prompt> echo $i
12
prompt> echo $((2 ** 4))
16