if

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

if v10.4.28

use mutations X or Y based on a condition.

In pins 3
  • true required
    mutations
  • false required
    mutations
  • boolean required
    condition
Out pins 1
  • mutations
    mutations

A typical wiring for if: set fields feeds the then pin; is not empty feeds the condition pin; increment by field feeds the else pin; the mutations out pin feeds multiple.

Studio canvas example for the if block: typical wiring for if.

Commonly used with

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

  • set fields: feeds into this block. Generates an array of mutations based on the given filled fields.
  • multiple: this block feeds into it. combine multiple mutations into one.
  • is not empty: feeds into this block. checks if the value is filled (not empty).
  • increment by field: feeds into this block.
  • OR: feeds into this block. operator for a set of operands is true if and only if one or more of its operands is true.
  • update document: this block feeds into it. Update document in the given storage and creates a revision for it.

Version history

Introduced in v10.4.28.


Back to mutations Return to the main group to view all sub-groups Back to mutations: conditions Return to the group to view all blocks within this group