← not operator page · boolean/not/sc/true_and_false_operands
pandas ✅ · DuckDB ✅
not SC_true and not SC_false: the two boolean values, with SC_true = true and SC_false = false.
Logical negation: "not false gives true", "not true gives false" and "not null gives null"; the page's sentence "returns true if op is false, otherwise true" has a typo ("otherwise true" would make not true true) and ignores null, and the listed rows govern.
SC_1 is false and SC_2 is true, both Booleans.
SC_1 := not SC_true; SC_2 := not SC_false;
| SC_true | SC_false |
|---|---|
| true | false |
{
"scalars": [
{"name": "SC_true", "type": "Boolean"},
{"name": "SC_false", "type": "Boolean"}
]
}
{
"scalars": [
{"name": "SC_1", "type": "Boolean", "value": "false"},
{"name": "SC_2", "type": "Boolean", "value": "true"}
]
}