ClickHouse/docs/en/functions/conditional_functions.md
2018-04-23 09:20:21 +03:00

221 B

Conditional functions

if(cond, then, else), cond ? operator then : else

Returns 'then' if cond !or 'else' if cond = 0.'cond' must be UInt 8, and 'then' and 'else' must be a type that has the smallest common type.