Skip to main content
Documentation
Node Editor

Comparison Nodes

Compare values with equality and greater or smaller tests, min and max, step, gate, and threshold.

This category contains 11 nodes.

Nodes

Gate

Switches between 0 and 1 with a hard cutoff. It outputs 1 when the value is above the threshold and 0 when it is below.

Inputs: The value to test and the threshold level.

NameTypeRangeDefault
ValueNumberany0
ThresholdNumberany0.5

Outputs: 1 if the value meets the threshold, 0 otherwise.

NameTypeRange
ResultNumber0 or 1

Is Equal

Checks if two numbers are exactly equal.

Inputs: The two values to compare.

NameTypeRangeDefault
ANumberany0
BNumberany0

Outputs: True if equal, false otherwise.

NameTypeRange
ResultBooleanbool

Is Greater

Checks if A is larger than B. If Include Equal is on, it also returns true when they are equal.

Inputs: The two values and whether to include equal values.

NameTypeRangeDefault
ANumberany0
BNumberany0
Include EqualBooleanboolfalse

Outputs: True if A is greater (or equal if enabled).

NameTypeRange
ResultBooleanbool

Is Smaller

Checks if A is smaller than B. If Include Equal is on, it also returns true when they are equal.

Inputs: The two values and whether to include equal values.

NameTypeRangeDefault
ANumberany0
BNumberany0
Include EqualBooleanboolfalse

Outputs: True if A is smaller (or equal if enabled).

NameTypeRange
ResultBooleanbool

Max

Returns the larger of two numbers.

Inputs: Two numbers to compare.

NameTypeRangeDefault
ANumberany0
BNumberany0

Outputs: The larger value.

NameTypeRange
NumberNumberany

Maximum Vector

Takes the larger value on each axis. It compares X with X, Y with Y, and Z with Z.

Inputs: Two 3D vectors.

NameTypeRangeDefault
Vector AVectorvec[0, 0, 0]
Vector BVectorvec[1, 1, 1]

Outputs: A vector with the larger value on each axis.

NameTypeRange
VectorVectorvec

Min

Returns the smaller of two numbers.

Inputs: Two numbers to compare.

NameTypeRangeDefault
ANumberany0
BNumberany0

Outputs: The smaller value.

NameTypeRange
NumberNumberany

Minimum Vector

Takes the smaller value on each axis. It compares X with X, Y with Y, and Z with Z.

Inputs: Two 3D vectors.

NameTypeRangeDefault
Vector AVectorvec[0, 0, 0]
Vector BVectorvec[1, 1, 1]

Outputs: A vector with the smaller value on each axis.

NameTypeRange
VectorVectorvec

Step

Cuts hard at a threshold. It returns 0 below the edge and 1 at or above it.

Inputs: The threshold and the value to test.

NameTypeRangeDefault
EdgeNumberany0
XNumberany0

Outputs: 0 or 1.

NameTypeRange
NumberNumber0 or 1

Step Vector

Cuts hard on each axis. It returns 0 below the edge and 1 at or above it.

Inputs: The edge threshold and the value to test.

NameTypeRangeDefault
EdgeVectorvec[0, 0, 0]
XVectorvec[0, 0, 0]

Outputs: A vector with 0 or 1 on each axis.

NameTypeRange
VectorVectorvec

Threshold

Cuts off values below a threshold. Values above it pass through unchanged, and values below it become zero.

Inputs: The value to filter and the threshold.

NameTypeRangeDefault
ValueNumberany0
ThresholdNumberany0.5

Outputs: The original value if it is above the threshold, otherwise 0.

NameTypeRange
ResultNumberany