IF function

Syntax

IF(condition, value_if_true, value_if_false)

Arguments

condition: an expression that evaluates to TRUE or to FALSE
value_if_true: the value that is returned if the condition is met (optional)
value_if_false: the value that is returned otherwise (optional)

Description

depending on the given condition being met or not, the IF function returns value_if_true or value_if_false respectively.

Filed under

Logic

Related Functions

IF