===

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

=== v10.4.28

returns true if the two values are equal. Compares any type: numbers by value across int/float, strings and booleans strictly, objects and arrays deeply. There is no string/number coercion, so "1" does not equal 1.

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

True when number_1 and number_2 are equal: numbers by value regardless of integer/float representation, strings and booleans strictly, objects and arrays by deep structural equality. NO string/number coercion ("1" does not equal 1). When BOTH inputs are nil or NaN the output is false, not true. Actions created before 2020-08-12 compare stringified representations instead.

deepequal
equal

A typical wiring for ===: number feeds the number_1 pin; length feeds the number_2 pin; the condition out pin feeds branch.

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.
  • length: feeds into this block. Returns the total length of the given array.
  • branch: this block feeds into it.
  • 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.
  • get image size: feeds into this block. Returns the dimensions of the image given.
  • Request: GET: feeds into this block. Performs an HTTP GET request to retrieve data from the specified URL. Returns the response as a string value.

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