Is Equal
Last updated
Last updated
Is Equal is a Relational Expression Node, which compares two input values, and returns a Boolean, based on how the two values compare to each other in terms of equality. The Node has two modes, determined by the Mode
Attribute:
IsEqual
- Are the two values equal in value.
IsNotEqual
- Are the two values not equal in value.
Relational expressions are frequently used in combination with Branch Nodes and logical operator Nodes (AND, OR, and Negate) to create conditional logic, and are essential for building complex systems.
Scope: Project, Scene, Function, Prefab.
Relational operator on Wikipedia.
Attribute | Type | Description |
---|---|---|
Input | Type | Description |
---|---|---|
Output | Type | Description |
---|---|---|
Data Type
Drop-down
The type of data that will be plugged into the A
and B
Sockets.
Mode
Drop-down
The type of expression that will be used when comparing the values.
Default Value A
Defined in the Data Type
Attribute.
The value of A
if no value is provided via the Node's Socket.
Default Value B
Defined in the Data Type
Attribute.
The value of B
if no value is provided via the Node's Socket.
Pulse Input (►)
Pulse
A standard input Pulse, to trigger the execution of the Node.
A
Defined in the Data Type
Attribute.
The value to be compared with B
.
B
Defined in the Data Type
Attribute
The value to be compared with A
.
Pulse Output (►)
Pulse
A standard output Pulse, to move onto the next Node along the Logic Branch, once this Node has finished its execution.
C
Bool
In IsEqual
Mode
: Returns true if A
is equal to B
. If not, then it returns false.
In IsNotEqual
Mode
: Returns true if A
and B
are not equal. Otherwise, it returns false.