ClickHouse/docs/en/sql-reference/functions/logical-functions.md

20 lines
411 B
Markdown
Raw Normal View History

2020-04-03 13:23:32 +00:00
---
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.
2020-03-20 10:10:48 +00:00
Zero as an argument is considered “false,” while any non-zero value is considered “true”.
2020-03-20 10:10:48 +00:00
## and, AND operator {#and-and-operator}
2020-03-20 10:10:48 +00:00
## or, OR operator {#or-or-operator}
2020-03-20 10:10:48 +00:00
## not, NOT operator {#not-not-operator}
2018-04-23 06:20:21 +00:00
2020-03-20 10:10:48 +00:00
## xor {#xor}