is not empty

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

is not empty v10.4.28

checks if the value is filled (not empty)

In pins 1
  • Value required
    value

    The value to be checked.

Out pins 1
  • condition
    condition

    The condition that tells if the given value is filled (not empty).

True when the value pin is neither nil/missing nor the empty string. Everything else counts as NOT empty: 0, false, whitespace, empty arrays, and empty objects all output true.

is not empty outputs true when the value on its pin contains something. Here it checks a field read with get fields before a branch decides whether the flow continues, the classic guard against empty document fields.

Studio canvas example for the is not empty block: guarding against empty values.

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.
  • 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.
  • if: this block feeds into it. use mutations X or Y based on a condition.
  • if: this block feeds into it. Conditional branching for values (if.. then.. else..). Selects which input value is passed through; it does not route flow.
  • create: feeds into this block. Creates a new function that can be executed using the given name.

Used in these guides

These documentation pages use or explain this block:

Version history

Introduced in v10.4.28.


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