ClickHouse/docs/en/functions/conditional_functions.rst
Andrey Dudin e3f8647a75 Functions
2017-04-27 23:16:22 +03:00

8 lines
264 B
ReStructuredText

Conditional functions
-------------
if(cond, then, else), оператор cond ? then : else
~~~~~~~~~~~~~~~~~
Returns 'then' if 'cond != 0', or 'else' if 'cond = 0'.
'cond' must be UInt 8, and 'then' and 'else' must be a type that has the smallest common type.