≤ (Less Than or Equal)
The≤ node compares two floating-point numbers and outputs a boolean value indicating whether the first input is less than or equal to the second input.
Inputs
a(float, default: 0): The first number to compare.b(float, default: 0): The second number to compare.
Outputs
result(boolean): True ifais less than or equal tob, false otherwise.
Configuration
This node has no configuration options.Usage
To use the≤ node:
- Connect the first number to compare to the
ainput. - Connect the second number to compare to the
binput. - The
resultoutput will emittrueifais less than or equal tob, andfalseotherwise.
Example
Here’s an example of how to use the≤ node in a spell:
- The first
input/numbernode provides the value5to theainput of the≤node. - The second
input/numbernode provides the value7to thebinput of the≤node. - The
≤node compares5and7, and since5is less than7, it outputstrue. - The
output/booleannode receives thetruevalue and outputs it from the spell.
Best Practices
- Ensure that the inputs to the
≤node are both floating-point numbers. Connecting other data types may cause unexpected behavior. - Remember that the order of the inputs matters. The node checks if
ais less than or equal tob, not the other way around.
Common Issues
- If either of the inputs is not a floating-point number, the node will not function correctly. Make sure to properly cast or convert input values to floats before connecting them to this node.
