get first filled

This block is part of the object group and was last modified in core v13.0.8.

get first filled v13.0.8

will return the first non-empty object, checking first, then second, then any extended pins. Returns nothing when all of them are empty.

In pins 2
  • first required
    object
  • second required
    object
Out pins 1
  • object
    object

Returns the first input among first, second, then any extended pins whose value is a NON-EMPTY object; {} and non-object values are skipped as empty. When every input is empty the output is nil, NOT {}. Extended pins are checked in sorted pin-id order.

logical or
first defined

A typical wiring for get first filled: remove document feeds the first pin; update document feeds the second pin; the object out pin feeds get fields.

Studio canvas example for the get first filled block: typical wiring for get first filled.

Commonly used with

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

  • get fields: this block feeds into it. Gets the selected fields from the given object.
  • create: feeds into this block. Creates a new function that can be executed using the given name.
  • remove document: feeds into this block. Removes the given document from the given storage.
  • update document: feeds into this block. Update document in the given storage and creates a revision for it.

Version history

Introduced in v13.0.8.


Back to object Return to the main group to view all sub-groups Back to expressions Return to the group to view all blocks within this group