IfKnownElse Function
Description:
Returns the value of the first expression if it is a literal value. Otherwise, returns the value of the second expression.
This function is the equivalent of If Known(VarA) Then VarA Else VarB
Returns:
Any
Parameters:
Parameter | Data Type | Description |
|---|---|---|
1 | Any | The first expression. |
2 | Any | The second expression. |
Examples:
When using functions inside a field, remember the field brackets:
{IfKnownElse(SpouseName, "**Spouse Name**")}
Expression | Result |
|---|---|
IfKnownElse( VarA, VarB ) where VarA="a" and VarB="b" | "a" |
IfKnownElse( VarA, VarB ) where VarA is unknown and VarB="b" | "b" |
IfKnownElse( VarA, VarB ) where VarA and VarB are both unknown | non-evaluable |