Unary Expressions
Unary expressions use a single operator to operate on a single operand.
Details
Details are as follows:
- Simdify 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.
Examples
Unary operators and sample expressions are as follows:
Unary Expressions |
Examples |
+ |
+x |
- |
-x |
++ |
++x |
-- |
--x |
! |
!x |
[ ] |
x[2] |