firstNonEmpty
The firstNonEmpty
function is used to return the first non-null, non-empty parameter
Syntax
c4i:firstNonEmpty(xpath, ...)
Parameters
xpath
A xpath
Return value
The first non-null, non-empty parameter
Example
Given the following STEP XML :
<STEP-ProductInformation>
<Products>
<Product ID="PRD1">
</Product>
</Products>
</STEP-ProductInformation>
The following YAML configuration will produce the following output :
- c4i:firstNonNull(Name/text(), @ID): label
PRD1