# 邏輯運算子

所有邏輯運算子都會以邏輯方式解譯運算元，並傳回 True (-1) 或 False (0) 做為結果。

邏輯運算子

| 邏輯運算子 | 運算子函數 |
| --- | --- |
| [](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) not | 邏輯反向。幾個一元運算子的其中一個。該運算會傳回運算元的邏輯反向。 |
| [](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) and | 邏輯 and。該運算會傳回運算元的邏輯 and。 |
| [](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) or | 邏輯 or。該運算會傳回運算元的邏輯 or。 |
| [](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) Xor | 邏輯 exclusive or。該運算會傳回運算元的邏輯 exclusive or。也就是和邏輯 or 一樣，差別在於如果兩個運算元為 True 時，結果則為 False。 |