iff
function
Applies to: Databricks SQL Databricks Runtime
Returns expr1
if cond
is true
, or expr2
otherwise. This function is a synonym for if function.
Arguments
cond
: A BOOLEAN expression.expr1
: An expression of any type.expr2
: An expression that shares a least common type withexpr1
.