<=

This block is part of the condition group and was last modified in core v10.4.28.

<= v10.4.28

returns true if the number is lower or equal.

In pins 2
  • compare required
    number
  • to required
    number
Out pins 1
  • condition
    condition

True when number_1 <= number_2 after JS-style numeric coercion: numeric strings parse, nil and empty string coerce to 0, booleans to 1/0. False when either pin is unconnected or coerces to NaN (non-numeric string), so it is not simply the inverse of >.

lowerequal
singleequal

A typical wiring for <=: number feeds the number_1 pin; increment feeds the number_2 pin; the condition out pin feeds AND.

Studio canvas example for the <= block: typical wiring for <=.

Commonly used with

In production blueprints, this block is most often wired together with:

  • number: feeds into this block. Generates a valid number from the filled custom value in the blueprint.
  • increment: feeds into this block. Increments the number stored at key by one. If the key does not exist, it is set to 0 before performing the operation.
  • AND: this block feeds into it. operator for a set of boolean operands will be true if and only if all the operands are true.
  • branch: this block feeds into it.
  • OR: this block feeds into it. operator for a set of operands is true if and only if one or more of its operands is true.
  • file info: feeds into this block. Gets basic file information.

Version history

Introduced in v10.4.28.


Back to condition Return to the main group to view all sub-groups Back to condition: number Return to the group to view all blocks within this group