If Operator - Haufe-Lexware/haufe.no-frills-transformation GitHub Wiki

Evaluates the first argument; if it evaluates to true, returns the evaluated trueExpression, otherwise the third (the evaluation of falseExpression). Any argument can take any expression, as long as the types match.

What Type
Syntax If(condition, trueExpression, falseExpression)
condition bool
trueExpression any
falseExpression any
Return type string

Example: If(Contains($firstName, "Martin"), "good", "bad")