Math: Logic

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

Nodes

NodeDetailsPossible Types
All

Outputs true only if every value in the input list is true. An empty list gives true.

bool[] → bool
Any

Outputs true if at least one value in the input list is true. An empty list gives false.

bool[] → bool
Equals

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

f64 → bool
f64[] → bool[]
f32 → bool
f32[] → bool[]
u32 → bool
u32[] → bool[]
Vec2 → bool
Vec2[] → bool[]
bool → bool
bool[] → bool[]
String → 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
f64[] → bool[]
f32 → bool
f32[] → bool[]
u32 → 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
f64[] → bool[]
f32 → bool
f32[] → bool[]
u32 → 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
bool[] → bool[]
Logical Not

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

bool → bool
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
f64[] → bool[]
f32 → bool
f32[] → bool[]
u32 → bool
u32[] → bool[]
Vec2 → bool
Vec2[] → bool[]
bool → bool
bool[] → bool[]
String → 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[] → String[]
bool → bool
bool[] → bool[]
bool → f32
bool[] → f32[]
bool → f64
bool[] → f64[]
bool → u32
bool[] → u32[]
bool → u64
bool[] → u64[]
bool → Vec2
bool[] → Vec2[]
bool → Transform
bool[] → Transform[]
bool → Vector
bool[] → Vector[]
bool → Graphic
bool[] → Graphic[]
bool → Raster
bool[] → Raster[]
bool → Color
bool[] → Color[]
bool → Gradient
bool[] → Gradient[]
bool → Artboard
bool[] → Artboard[]
bool → String[]
bool[] → String[][]
bool → bool[]
bool[] → bool[][]
bool → f32[]
bool[] → f32[][]
bool → f64[]
bool[] → f64[][]
bool → u32[]
bool[] → u32[][]
bool → u64[]
bool[] → u64[][]
bool → Vec2[]
bool[] → Vec2[][]
bool → Transform[]
bool[] → Transform[][]
bool → Vector[]
bool[] → Vector[][]
bool → Graphic[]
bool[] → Graphic[][]
bool → Raster[]
bool[] → Raster[][]
bool → Color[]
bool[] → Color[][]
bool → Gradient[]
bool[] → Gradient[][]
bool → Artboard[]
bool[] → Artboard[][]