# Question? If-Then-Else

**URL:** https://community.glideapps.com/t/question-if-then-else/4531
**Category:** Ask for Help
**Created:** [February 12, 2020, 5:12pm UTC](https://community.glideapps.com/t/question-if-then-else/4531 "2020-02-12T17:12:44Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Woody](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/woody/32/2768_2.png) [@Woody](https://community.glideapps.com/u/Woody)
#### Post date: [February 12, 2020, 5:12pm UTC](https://community.glideapps.com/t/question-if-then-else/4531/1 "2020-02-12T17:12:44Z")

</div>

Can this function be used for images too?

---

<div class="post-metadata">

### Author: ![mthakershi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mthakershi/32/1715_2.png) [@mthakershi](https://community.glideapps.com/u/mthakershi)
#### Post date: [February 12, 2020, 5:24pm UTC](https://community.glideapps.com/t/question-if-then-else/4531/2 "2020-02-12T17:24:44Z")

</div>

Your question is too vague. I use If-Then-Else column to display status image based on status value. So if status value = “open”, use URL for icon that is used for open - if status value = “closed”, use URL for icon that is for closed and so on.

---

<div class="post-metadata">

### Author: ![Woody](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/woody/32/2768_2.png) [@Woody](https://community.glideapps.com/u/Woody)
#### Post date: [February 12, 2020, 5:27pm UTC](https://community.glideapps.com/t/question-if-then-else/4531/3 "2020-02-12T17:27:51Z")

</div>

ok testing it out still learning glide and lovin it thanks

---

<div class="post-metadata">

### Author: ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)
#### Post date: [February 12, 2020, 6:38pm UTC](https://community.glideapps.com/t/question-if-then-else/4531/4 "2020-02-12T18:38:37Z")

</div>

It sure can. You can do this in one of three ways:

1. Easiest: use emojis if that suffices
2. Just as easy: copy/paste the URL of the image into the if/then/else
3. Not as easy but more dynamic:  
…create a sheet with columns that relate a keyword to an image URL (DogImage | URL)  
…in the sheet with the if/then/else, use those keywords as the results  
…then, in the data view for that sheet create a relation column between the if/then/else and the sheet with the keyword/relation columns  
…lastly, create a lookup column that results in the URL of the relation

Why go through the trouble of #3? Because if you ever want to switch up the images, you can simply do so in the sheet.

---

<div class="post-metadata">

### Author: ![Woody](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/woody/32/2768_2.png) [@Woody](https://community.glideapps.com/u/Woody)
#### Post date: [February 12, 2020, 6:50pm UTC](https://community.glideapps.com/t/question-if-then-else/4531/5 "2020-02-12T18:50:20Z")

</div>

Tx Robert

---

<div class="post-metadata">

### Author: ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)
#### Post date: [February 12, 2020, 7:12pm UTC](https://community.glideapps.com/t/question-if-then-else/4531/6 "2020-02-12T19:12:02Z")

</div>

My pleasure.
