LessThanOrEqual
Float
≤ (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 ifa
is 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
a
input. - Connect the second number to compare to the
b
input. - The
result
output will emittrue
ifa
is less than or equal tob
, andfalse
otherwise.
Example
Here’s an example of how to use the ≤
node in a spell:
In this example:
- The first
input/number
node provides the value5
to thea
input of the≤
node. - The second
input/number
node provides the value7
to theb
input of the≤
node. - The
≤
node compares5
and7
, and since5
is less than7
, it outputstrue
. - The
output/boolean
node receives thetrue
value 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
a
is 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.