Comparison
Last updated
Last updated
You can use comparison nodes to compare two values. The output is a Boolean value that indicates whether the comparison is true or false.
Not all data types are valid inputs for all comparison nodes. For example, you can use an Equal node to determine if two Vector3 objects are equal - i.e. x, y, and z components are equal. However, it's not meaningful to check if one Vector3 is less than another.
If you want to compare the magnitude of two Vector3 objects, or perform other comparisons, see the Vector 3 section of the node dictionary.
If you connect invalid inputs to a comparison port, the node will display an Unsupported Types message.
Equal
A == B
Outputs true if A is equal to B.
Greater Than
A > B
Outputs true if A is greater than B. Compatible with integers and floats only.
Greater Than Equal
A >= B
Outputs true if A is greater than B, or if A is equal to B. Compatible with integers and floats only.
Less Than
A < B
Outputs true if A is less than B. Compatible with integers and floats only.
Less Than Equal
A <= B
Outputs true if A is less than B, or if A is equal to B. Compatible with integers and floats only.
Not Equal
A != B
Outputs true if A is not equal to B.
Inputs:
A
<varies>
The value to compare with B
.
B
<varies>
The value that A
is compared with.
Outputs:
Output
Boolean
True if the comparison is true. False otherwise.