> For the complete documentation index, see [llms.txt](https://docs.keyfax.biz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.keyfax.biz/product-suite/admin/databox-expressions/logical-expressions.md).

# Logical Expressions

These expressions can be used to create conditional logic and determine script flow:

<table><thead><tr><th>Expression</th><th>Databox Value</th><th width="103">Result</th><th>Comments</th></tr></thead><tbody><tr><td><code>If("Yes", "No")</code></td><td>true / True / TRUE</td><td>Yes</td><td>Error if not true/false</td></tr><tr><td><code>Exists</code></td><td>"any text"<br></td><td>True</td><td>False only returned for empty Databox values. See <a href="/pages/p2kiIEyWlBPmTFjdeCyx">Exists</a> within <a href="/pages/ZuezFz82r5v7ptqyGQv5">Text Expressions</a>.<br><br></td></tr></tbody></table>
