# If-Then-Else + Template

**URL:** <https://community.glideapps.com/t/if-then-else-template/68603>\
**Category:** Ask for Help\
**Created:** [December 12, 2023, 11:05am UTC](https://community.glideapps.com/t/if-then-else-template/68603 "2023-12-12T11:05:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Si\_Gal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/si_gal/32/79433_2.png) [@Si\_Gal](https://community.glideapps.com/u/Si_Gal)\
**Post date:** [December 12, 2023, 11:05am UTC](https://community.glideapps.com/t/if-then-else-template/68603/1 "2023-12-12T11:05:57Z")

</div>

Hi, I am trying to create something similar to and if+concatenate excel formula.

If {Name} ‘is not empty’ the this Template  
If {Name} ‘is empty’ the this Template

Is that posisble to do as using one column type?

Thanks

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 12, 2023, 11:09am UTC](https://community.glideapps.com/t/if-then-else-template/68603/2 "2023-12-12T11:09:56Z")

</div>

How different are the templates?

I’d probably use a single template column, then one or more if-then-else columns to feed values into the template.

---

<div class="post-metadata">

**Author:** ![Si\_Gal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/si_gal/32/79433_2.png) [@Si\_Gal](https://community.glideapps.com/u/Si_Gal)\
**Post date:** [December 12, 2023, 11:16am UTC](https://community.glideapps.com/t/if-then-else-template/68603/3 "2023-12-12T11:16:36Z")

</div>

They are very similar. The two options are:

‘A-B-C’ or ‘B-C’

It is dependent on A not being empty

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 12, 2023, 11:23am UTC](https://community.glideapps.com/t/if-then-else-template/68603/4 "2023-12-12T11:23:04Z")

</div>

Okay, so you might be better off with two template columns, then you don’t have to mess around with the dangling dash when A is empty.

So…

- Create your two template columns
- Then a single if-then-else column:  
– If A is not empty, then Template A  
– Else Template B

---

<div class="post-metadata">

**Author:** ![Si\_Gal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/si_gal/32/79433_2.png) [@Si\_Gal](https://community.glideapps.com/u/Si_Gal)\
**Post date:** [December 12, 2023, 11:29am UTC](https://community.glideapps.com/t/if-then-else-template/68603/5 "2023-12-12T11:29:18Z")

</div>

great, I’ll give it a go.

---

<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:** [December 19, 2023, 11:29am UTC](https://community.glideapps.com/t/if-then-else-template/68603/6 "2023-12-19T11:29:25Z")

</div>

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