This functionality is only available for certain module packages.

You are here: Reference > Formula Language > Formulas > Collections (collections of objects) > General methods for Collections > ifEmpty(Block block)

ifEmpty(Block block)

If the Collection (List, Bag or Set) is empty, the result of the formula given with the argument block is returned.

ifEmpty(Block block)
Argument Block block Formula, which returns an alternative result.
Return value Boolean