≤
node compares two integer inputs and outputs a boolean value indicating whether the first input is less than or equal to the second input.
a
(integer): The first integer to compare. Default value is 0.b
(integer): The second integer to compare. Default value is 0.result
(boolean): True if a
is less than or equal to b
, false otherwise.≤
node:
a
and b
input ports. These can be hardcoded values, or outputs from other nodes.result
port, which you can then use as input to other nodes or as a final output of your spell.≤
node like this:
a
port.b
port.result
port will output true
if the user’s age is less than or equal to 18, false
otherwise.result
to a branch node to conditionally execute different parts of your spell based on whether the user is a minor.≤
are actually integers. Connecting other data types may lead to unexpected behavior.≤
is inclusive of the second input value. If you want strict less than comparison, use the <
node instead.a
is less than or equal to b
, not the other way around.true
and false
cases in your spell logic. Make sure you consider what should happen in each case.