Math: Logic

Nodes in this category perform boolean logic operations such as comparisons, conditionals, logic gates, and switching.

Nodes

NodeDetailsPossible Types
Equals

The equality operation (==, XNOR) compares two values and returns true if they are equal, or false if they are not.

f64 → bool
f32 → bool
u32 → bool
vec2 → bool
bool → bool
string → bool
Greater Than

The greater-than operation (>) compares two values and returns true if the first value is greater than the second, or false if it is not.

If enabled with Or Equal, the greater-than-or-equal operation (>=) is used instead.

f64 → bool
f32 → bool
u32 → bool
Less Than

The less-than operation (<) compares two values and returns true if the first value is less than the second, or false if it is not.

If enabled with Or Equal, the less-than-or-equal operation (<=) is used instead.

f64 → bool
f32 → bool
u32 → bool
Logical And

The logical AND operation (&&) returns true if both of the two inputs are true, or false if any are false.

bool → bool
Logical Not

The logical NOT operation (!) reverses true and false value of the input.

bool → bool
Logical Or

The logical OR operation (`

Not Equals

The inequality operation (!=, XOR) compares two values and returns true if they are not equal, or false if they are.

f64 → bool
f32 → bool
u32 → bool
vec2 → bool
bool → bool
string → bool
Switch

Evaluates either the "If True" or "If False" input branch based on whether the input condition is true or false.

bool → string
bool → bool
bool → f32
bool → f64
bool → u32
bool → u64
bool → vec2
bool → transform
bool → Table<Artboard>
bool → Table<Graphic>
bool → Table<Vector>
bool → Table<Raster>
bool → Table<Color>
bool → GradientStops