# How to use logical operators in "If -\> then -\> else" column?

**URL:** <https://community.glideapps.com/t/how-to-use-logical-operators-in-if-then-else-column/37616>\
**Category:** Ask for Help\
**Created:** [January 24, 2022, 6:03pm UTC](https://community.glideapps.com/t/how-to-use-logical-operators-in-if-then-else-column/37616 "2022-01-24T18:03:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tales\_Godinho](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tales_godinho/32/29791_2.png) [@Tales\_Godinho](https://community.glideapps.com/u/Tales_Godinho)\
**Post date:** [January 24, 2022, 6:03pm UTC](https://community.glideapps.com/t/how-to-use-logical-operators-in-if-then-else-column/37616/1 "2022-01-24T18:03:19Z")

</div>

How to use logical operators in “If → then → else” column?

Example:

if → Column 1 is true AND Column 2 is true → then column 3 = true

or:

if → Column 1 is true OR Column 2 is true → then column 3 = true

At the moment I’m only able to make individual “if/else” relationships, with simple logic, not getting the expected result because I can’t use logical operators.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [January 24, 2022, 7:47pm UTC](https://community.glideapps.com/t/how-to-use-logical-operators-in-if-then-else-column/37616/2 "2022-01-24T19:47:01Z")

</div>

Well, column 3 would be your IF column. You can’t use an IF column to set a value in another column.

The IF column returns and displays the output of the first condition that results in a true comparison.

To structure your two examples above:

First example with an AND condition:  
IF column 1 IS NOT true THEN false  
ELSE IF column 2 IS NOT true THEN false  
ELSE true

Second example with an OR condition:  
IF column 1 IS true THEN true  
ELSE IF column 2 IS true THEN true  
ELSE false

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [January 25, 2022, 7:47pm UTC](https://community.glideapps.com/t/how-to-use-logical-operators-in-if-then-else-column/37616/3 "2022-01-25T19:47:42Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
