Skip to content

Operators & Expressions

vctx supports standard hardware operators.

+ (Add)
- (Subtract)
* (Multiply)
/ (Divide)
% (Modulus)

| (OR)
^ (XOR)
& (AND)
~ (NOT / Invert)

or (Logical OR)
and (Logical AND)
not (Logical NOT)

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)

cond ? true_val : false_val