Documentation Index
Fetch the complete documentation index at: https://docs.magickml.com/llms.txt
Use this file to discover all available pages before exploring further.
Equal (Boolean)
The Equal (Boolean) node compares two boolean values and outputstrue 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 betrueifaandbare equal, orfalseif they are not equal.
Configuration
This node has no configuration options.Usage
- Connect the first boolean value to compare to the
ainput. - Connect the second boolean value to compare to the
binput. - The
resultoutput will emittrueifaandbare equal, orfalseif they are not equal.
Example
Here’s an example of how to use the Equal (Boolean) node in a spell:- 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
aandbinputs of the Equal (Boolean) node (node 2). - The Equal (Boolean) node compares the two input values. Since
trueis 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
aandbinputs. 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.
