AiondaAionda

Formula reference · Logic and conditions

IF

Choose between two values according to a condition.

English · 23 November 2026

Review edition — editorial review is not yet complete.

Back to the function catalog

What it does

Choose between two values according to a condition.

Syntax

IF(condition, value_if_true, value_if_false)

Square brackets mark optional arguments; omit the brackets. Separate arguments with commas, quote text and use a point for decimals.

Arguments, in order

ArgumentMeaning
conditionBoolean test to evaluate first.
value_if_trueReturned when the condition is true.
value_if_falseReturned when the condition is false; this argument is required.

Returns: Type of the selected value.

Worked examples

Example 1

Formula

IF(18000 > 10000, "Priority", "Standard")

Result

"Priority"

Quotes in the result indicate text; \n indicates a newline. Date results use ISO notation. The application may display dates and numbers differently according to the selected field type and interface language.

Behaviour and limits

Only the selected branch is evaluated. Keep both value branches compatible with the formula field’s selected return type.

Use it with your fields

Replace example values with the relevant field API names when needed. A record formula uses names such as amount; a flow expression uses its context, such as $Datensatz.amount. Use your actual API names and a compatible return type. See expression basics and flows.