> For the complete documentation index, see [llms.txt](https://gamingmod.gitbook.io/chardscript-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gamingmod.gitbook.io/chardscript-docs/chardscript-tutorial/chardscript-operators/logical-operators.md).

# Logical Operators

Logical operators are used to combine conditional statements:

<table><thead><tr><th width="122">Operator</th><th width="201">Description</th><th>Example</th></tr></thead><tbody><tr><td>and </td><td>Returns true if both statements are true</td><td>x &#x3C; 5 and  x &#x3C; 10</td></tr><tr><td>or</td><td>Returns true if one of the statements is true</td><td>x &#x3C; 5 or x &#x3C; 4</td></tr><tr><td>not</td><td>Reverse the result, returns false if the result is true</td><td>not(x &#x3C; 5 and x &#x3C; 10)</td></tr></tbody></table>
