Operators & Expressions
Operator Precedence
Section titled “Operator Precedence”vctx supports standard hardware operators.
Arithmetic
Section titled “Arithmetic”+ (Add)
- (Subtract)
* (Multiply)
/ (Divide)
% (Modulus)
Bitwise
Section titled “Bitwise”| (OR)
^ (XOR)
& (AND)
~ (NOT / Invert)
Logical
Section titled “Logical”or (Logical OR)
and (Logical AND)
not (Logical NOT)
Comparison
Section titled “Comparison”All the comparison operators consistenly use two equal signs.
This is to avoid confusion with the sequential assignment operator (<=).
== (Equal)
!== (Not Equal)
< (Less Than)
> (Greater Than)
<== (Less or Equal)
>== (Greater or Equal)
<< (Shift Left)
>> (Shift Right)
Ternary
Section titled “Ternary”cond ? true_val : false_valNeed an offline copy? Download Full Manual (.md)