You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

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)

Search results for "coalesce()"

coalesce()

Returns the first non-null value in the list of expressions passed to it. In case all arguments are null, null will be returned.

coalesce(node.name, node.title, node.id, ...)