Prism · Structure
$coalesce
The first of its values that is not null.
{
user: {
name: null,
displayName: null,
email: '[email protected]',
},
}{
$coalesce: [
{ $ref: '$.user.name' },
{ $ref: '$.user.displayName' },
{ $ref: '$.user.email' },
{ $const: '(no name available)' },
],
}'[email protected]'
Runs in this page on the installed package. The input and the expected output are defined by the example.