# Logical functions

<table><thead><tr><th width="138">NAME</th><th width="543">DESCRIPTION</th><th data-hidden>SYNTAX</th><th data-hidden>EXPLANATION</th><th data-hidden>EXAMPLE</th></tr></thead><tbody><tr><td><a href="logical-functions/and">AND</a></td><td>Returns TRUE only if all conditions are TRUE.</td><td></td><td></td><td></td></tr><tr><td><a href="logical-functions/in">IN</a></td><td>Returns TRUE if the specified value is one of the values in the list or array.</td><td></td><td></td><td></td></tr><tr><td><a href="logical-functions/isblank">ISBLANK</a></td><td>Returns TRUE if the specified cell value is blank or empty.</td><td>ISBLANK(value)</td><td>Returns TRUE if AC is empty</td><td>ISBLANK(AC)</td></tr><tr><td><a href="logical-functions/isblank">ISEMPTY</a></td><td>Returns TRUE if the specified cell value is blank or empty. It works similar to ISBLANK.</td><td>ISEMPTY(value)</td><td>Returns TRUE if AC has no value</td><td>ISEMPTY(AC)</td></tr><tr><td><a href="logical-functions/isnumber">ISNUMBER</a></td><td>Returns TRUE if the cell value is a valid number.</td><td>ISNUMBER(value)</td><td>Returns AC-PY/PY if the value is a number else returns 0</td><td>IF(ISNUMBER((AC-PY)/PY), (AC-PY)/PY , 0)</td></tr><tr><td><a href="logical-functions/not">NOT</a></td><td>Returns the opposite logical value of the argument.</td><td>NOT( logical_test )</td><td>Will return 50 if the region is not West otherwise returns 25</td><td>IF(NOT(Region == "West"), 50, 25)</td></tr><tr><td><a href="logical-functions/or">OR</a></td><td>Returns TRUE if any argument is TRUE; returns FALSE only if all arguments are FALSE.</td><td>OR( logical_test1, [logical_test2], ... )</td><td>Will return 25 if the region is West or East otherwise returns 30</td><td>IF(OR(Region == "West", Region =="East"), 25, 30)</td></tr><tr><td><a href="logical-functions/xor">XOR</a></td><td>Returns TRUE if the number of satisfied conditions is odd, and FALSE if it is even.</td><td>XOR( logical_test1, [logical_test2], ... )</td><td>Will return 25 for all category in the West except for category Urban, and returns 25 for all Urban category under all region except for west, for all other items returns 30</td><td>IF(XOR(Region == "West", Category=="Urban"), 25, 30)</td></tr><tr><td><a href="logical-functions/isrefexist">ISREFEXIST</a></td><td>Returns TRUE if the specified reference exists in the model.</td><td></td><td></td><td></td></tr></tbody></table>

### Logical Operators

<table><thead><tr><th width="174.33333333333334">TITLE</th><th>OPERATORS</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td>AND</td><td>&#x26;&#x26;</td><td>Logical AND</td></tr><tr><td>OR</td><td>||</td><td>Logical OR</td></tr><tr><td>XOR</td><td>^</td><td>Logical Exclusive OR</td></tr></tbody></table>
