mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 14:11:58 +00:00
d91c97d15d
* Replace underscores with hyphens * remove temporary code * fix style check * fix collapse
21 lines
519 B
Markdown
21 lines
519 B
Markdown
---
|
|
toc_priority: 37
|
|
toc_title: Logical
|
|
---
|
|
|
|
# Logical Functions {#logical-functions}
|
|
|
|
Logical functions accept any numeric types, but return a UInt8 number equal to 0 or 1.
|
|
|
|
Zero as an argument is considered “false,” while any non-zero value is considered “true”.
|
|
|
|
## and, AND operator {#and-and-operator}
|
|
|
|
## or, OR operator {#or-or-operator}
|
|
|
|
## not, NOT operator {#not-not-operator}
|
|
|
|
## xor {#xor}
|
|
|
|
[Original article](https://clickhouse.tech/docs/en/query_language/functions/logical_functions/) <!--hide-->
|