If

Description

If the specified expression evaluates to True, this function returns the value of the ResultIfTrue parameter, otherwise it returns the value of the ResultIfFalse parameter.

Syntax

If(Expression: Boolean; ResultIfTrue, ResultIfFalse: String): String 

Example

If(Equals(String,Descr(),),Abbrev(),Concat(Abbrev,-,Descr()))

If the node name is Colas and the current node description is blank, then the return value is Colas.

If the node name is 100 and the current node descriptions is Colas, then the return value is 100–Colas.