KnownTrue Function
Relevance:
Variable occurrences within this function do not contribute towards the overall relevance of those variables.
Consequently, such variables must occur in at least one other context for them to be considered relevant.
Description:
Test if the expression is known and true.
Returns true if the expression fully evaluates to the literal value true, and returns false otherwise.
note
Note that this function is always evaluable.
Returns:
Boolean
Parameter:
Parameter | Data Type | Description |
|---|---|---|
1 | Boolean | The expression. |
Examples:
Expression | Result |
|---|---|
KnownTrue( Gender Is "Male" ) for a male | true |
KnownTrue( Gender Is "Male" ) for a female | false |
KnownTrue( Age IsMoreThan 30 ) where Age is unknown | false |
This function is most often used as a Business Rule on a span:
{ClientName} and [
KnownTrue(ClientGender Is "Male")
his][KnownTrue(ClientGender Is "Female")
her] estate...