Equal
Boolean
Equal (Boolean)
The Equal (Boolean) node compares two boolean values and outputs true
if they are equal, or false
if they are not equal.
Inputs
a
(boolean): The first boolean value to compare. Defaults tofalse
.b
(boolean): The second boolean value to compare. Defaults tofalse
.
Outputs
result
(boolean): The result of the equality comparison. Will betrue
ifa
andb
are equal, orfalse
if they are not equal.
Configuration
This node has no configuration options.
Usage
- Connect the first boolean value to compare to the
a
input. - Connect the second boolean value to compare to the
b
input. - The
result
output will emittrue
ifa
andb
are equal, orfalse
if they are not equal.
Example
Here’s an example of how to use the Equal (Boolean) node in a spell:
In this example:
- Node 1 is a Boolean Constant node that outputs
true
. - Node 3 is another Boolean Constant node that outputs
false
. - The outputs of nodes 1 and 3 are connected to the
a
andb
inputs of the Equal (Boolean) node (node 2). - The Equal (Boolean) node compares the two input values. Since
true
is not equal tofalse
, it outputsfalse
. - The output of the Equal (Boolean) node is sent to an Output (Boolean) node (node 4), which would make the result available outside the spell.
Best Practices
- Make sure to connect both the
a
andb
inputs. If either is left disconnected, it will default tofalse
. - The Equal (Boolean) node is useful whenever you need to test if two boolean values are the same. This is often used in conditional logic or data validation.
Common Issues
There are no common issues specific to this node. As long as both inputs are properly connected to boolean values, it will function as expected.