coalesce()
Usage
coalesce(node.name, node.title, node.id, ...)
Description
Returns the first non-null value in the list of expressions passed to it. In case all arguments are null, null will be returned.
Example
${coalesce(this.name, this.title, this.description, "All fields are empty!")}
results in
All fields are empty!
— (if name
, title
and description
are empty)