Coalesce

 

 

 

Coalesce

 

Description

Returns the first non-empty string from an array of values.

 

Arguments

1.Coalesce - Name of the Macro.

2.Value - Value to test for a non-empty string.

3.Default Value - An optional default value which, if no Value is returned in step 2, will become the value.

 

Examples

[Coalesce|[Attribute|TestA]|[Attribute|TestB]|[Attribute|Test3]|Hello]

Returns the first value in the list that is not blank or null and if no value is detected the word Hello.

 

[Coalesce|[Attribute|TestA]|[Attribute|TestB]|[Attribute|TestC]]

Returns the first value in the list that is not blank or null.

 

Notes

Useful when you absolutely must have a string value but one or more source values may be empty.

 


Copyright © 2024 pasUNITY, Inc.

 

Send comments on this topic.



Created with an evaluation copy of HelpSmith.
To remove this notice, you should purchase the full version of the product.