# IF function

## `IF(expr1,expr2,expr3)`

If`expr1`*\_is*`TRUE`*(*`expr1`*<> 0and*`expr1`*<> NULL),*[`IF()`](https://dev.mysql.com/doc/refman/5.7/en/control-flow-functions.html#function_if)*returns*`expr2`*. Otherwise, it returns*`expr3`.
