# Function: And, Or, Not

> Logical functions

Logical functions

These functions are based on the [Logical Operators](about-functions.md#logical-operators).

<colgroup>
<col/>
<col/>
<col/>
<col/>
<col/>
</colgroup>

Function

Syntax

Operator

Description

Example

And

And(Condition1, Condition2 [,Condition3 …])
                           

<code>&amp;&amp;</code>

Returns true if all arguments are true.

<code>And(TRUE, TRUE):</code> True
                           
<code>And(TRUE, FALSE):</code> False
                           
<code>And(FALSE, FALSE):</code> False
                           
<code>And(TRUE, TRUE, TRUE):</code> True
                           

Or

Or(Condition1, Condition2 [,Condition3 …])
                           

<code>||</code>

Returns true if any of the arguments are true.

<code>Or(TRUE, TRUE):</code> True
                           
<code>Or(TRUE, FALSE):</code> True
                           
<code>Or(FALSE, FALSE):</code> False
                           
<code>Or(FALSE, FALSE, TRUE):</code> True
                              

Not

Not(Condition)
                           

<code>!</code>

Returns true if its arguments is false, and returns false if its argument is true.

<code>Not(TRUE):</code> False
                           
<code>Not(FALSE):</code> True
                           
<code>Not(NOT(TRUE)):</code> True
