Unary Expressions

Unary expressions use a single operator to operate on a single operand.


Details are as follows:

  • Scenome Scripting Language only supports prefix increment and prefix decrement. Postfix versions of these operators are unsupported.
  • The array index operator can only be used with an array data type such as Int32Array or Float32Array.


Unary operators and sample expressions are as follows:

Unary Expressions Examples
+ +x
- -x
++ ++x
-- --x
! !x
[ ] x[2]