Coalesce

 

 

 

Coalesce

 

Description

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

 

Arguments

1.Coalesce - Name of the Macro.

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

3.ValueN - (Optional) Value to test for a non-empty string.

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

 

Examples

<Coalesce|<Parameter|TestA>|<Parameter|TestB>|<Parameter|TestC>|Hello>

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

 

<Coalesce|<Parameter|TestA>|<Parameter|TestB>|<Parameter|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.