# Logical operators

All logical operators interpret the operands logically and return True (-1) or False (0) as result.

Logical operators

| Logical operator | Operator function |
| --- | --- |
| [](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/Operators/LogicalOperators.htm)[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/Operators/LogicalOperators.htm)<br>not | Logical inverse. One of the few unary operators.<br>The operation returns the logical inverse of the operand. |
| [](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/Operators/LogicalOperators.htm)[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/Operators/LogicalOperators.htm)<br>and | Logical and. The operation returns the logical<br>and of the operands. |
| [](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/Operators/LogicalOperators.htm)[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/Operators/LogicalOperators.htm)<br>or | Logical or. The operation returns the logical<br>or of the operands. |
| [](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/Operators/LogicalOperators.htm)[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/Operators/LogicalOperators.htm)<br>Xor | Logical exclusive or. The operation returns<br>the logical exclusive or of the operands. I.e. like logical or, but with<br>the difference that the result is False if both operands are True. |