# Invert 2 values on the same line?

**URL:** <https://community.glideapps.com/t/invert-2-values-on-the-same-line/6357>\
**Category:** Ask for Help\
**Created:** [April 3, 2020, 7:14am UTC](https://community.glideapps.com/t/invert-2-values-on-the-same-line/6357 "2020-04-03T07:14:04Z")\
**Posts on this page:** 3\
**Page:** 2

<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:** [April 11, 2020, 3:24pm UTC](https://community.glideapps.com/t/invert-2-values-on-the-same-line/6357/22 "2020-04-11T15:24:48Z")

</div>

Like this:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/8/8e424684d253672a5cf8e6b6bba398f005a99d6f.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/b/bb9cf5deb9f0ac8b19eac5669bf996e767ba71ce.png)

> **[Template Column](https://docs.glideapps.com/all/reference/data-editor/computed-columns/template-column)**
>
> Create labels or messages based on other columns in your table

---

<div class="post-metadata">

**Author:** ![Jean-Philippe](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jean-philippe/32/4757_2.png) [@Jean-Philippe](https://community.glideapps.com/u/Jean-Philippe)\
**Post date:** [April 11, 2020, 4:10pm UTC](https://community.glideapps.com/t/invert-2-values-on-the-same-line/6357/23 "2020-04-11T16:10:18Z")

</div>

Thanks Jeff, it’s obviously much more easier to read and follow compared to my tricky solution.

So to summarize, for the processing of data, especially boolean tests, can we say that:  
Template Columns allows “AND” operations, whereas IF-THEN-ELSE allows “OR” operations ?

---

<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:** [April 11, 2020, 4:26pm UTC](https://community.glideapps.com/t/invert-2-values-on-the-same-line/6357/24 "2020-04-11T16:26:53Z")

</div>

Templates just join data and text. How would you expect it to work differently? The If Then columns handle OR’s just fine. You can create any combination of columns to get the result you want.

[Previous page](https://community.glideapps.com/t/invert-2-values-on-the-same-line/6357.md?page=1)
