==

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.

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

Coerces BOTH inputs to strings before comparing, so 1 equals "1" and true equals "true"; the resulting string comparison is exact and case-sensitive. A wired null becomes "null", a missing pin "" (two unwired pins compare equal). Arrays join with commas; any two plain objects both become "[object Object]" and therefore always compare EQUAL. Legacy actions carrying number_1/number_2 pins compare those two values strictly instead, without string coercion.

equal
singleequal
deepequal

The == block compares two values and outputs true when they match exactly. Here a role value is compared against the fixed text in a value block, and the result drives a branch. The compare pin would come from live data in a real blueprint, the to pin is the expected value.

Studio canvas example for the == block: comparing a value with ==.

Commonly used with

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

  • get fields: feeds into this block. Gets the selected fields from the given object.
  • value: feeds into this block. Simply returns the provided value.
  • 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.
  • 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.
  • get guid: feeds into this block. Returns the guid (field: _meta.guid) of the given user.

Version history

Introduced in v10.4.28.


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