Fields / Formula / function

IF

Returns one value when the condition is true and another when it is false.

Syntax

IF(condition, whenTrue, whenFalse)

Returns

The selected true or false value.

Example

IF(Amount > 1000, "Large", "Standard")

Notes and limitations

The condition must be a real True/False value: write Amount > 0 or NOT(IsBlank(Name)), not just Amount or Name. Both results must be the same kind of value (a Date with a Date/Time gives a Date); either may be null.