# If then else

**URL:** <https://community.glideapps.com/t/if-then-else/79156>\
**Category:** Ask for Help\
**Created:** [January 13, 2025, 9:30am UTC](https://community.glideapps.com/t/if-then-else/79156 "2025-01-13T09:30:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![PieSIM](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/piesim/32/55127_2.png) [@PieSIM](https://community.glideapps.com/u/PieSIM)\
**Post date:** [January 13, 2025, 9:30am UTC](https://community.glideapps.com/t/if-then-else/79156/1 "2025-01-13T09:30:59Z")

</div>

Hi everyone  
I want to know if i can choose more than one criteria in the same first area  
For example :  
If column 1 is …(then i can make a list instead of creating multiple rows of “OR” repeating same thing 30 times)  
i dont know if it’s unerstandable.  
Tanks for your help  
Pierr

---

<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:** [January 13, 2025, 10:12am UTC](https://community.glideapps.com/t/if-then-else/79156/2 "2025-01-13T10:12:48Z")

</div>

> [@PieSIM](#):
>
> i dont know if it’s unerstandable.

Not really. Can you give a more concrete example of what you are trying to do?

Show me what your input is, and what your desired output is.

---

<div class="post-metadata">

**Author:** ![PieSIM](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/piesim/32/55127_2.png) [@PieSIM](https://community.glideapps.com/u/PieSIM)\
**Post date:** [January 14, 2025, 12:07pm UTC](https://community.glideapps.com/t/if-then-else/79156/3 "2025-01-14T12:07:53Z")

</div>

I have a list which is the source of 8 choices.  
Then the answer is written in column CHOIX EXO 1, 2…  
I want to set a value (1 to 4) according to the result. (column Coeff)  
If CHOIX EXO 1 is or includes several words in the list = 1 or 2 or 3 or 4.  
For example : if CHOIX EXO 1 includes chenille or épaules or i want result 1.  
My question is can i suggest several words in “enter value” or should i repeat the process for every word.

Thanks Darren.  
Helpful as always

 ![ct1](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/1/710f4cfd0748ddb7a9bf97ff2a0b6dfd7af4b0bc.jpeg)  
 ![ct2](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/5/e50344ef99b2084bf8778b9b960dab9082e64c36.jpeg)

---

<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:** [January 14, 2025, 12:19pm UTC](https://community.glideapps.com/t/if-then-else/79156/4 "2025-01-14T12:19:52Z")

</div>

> [@PieSIM](#):
>
> For example : if CHOIX EXO 1 includes chenille or épaules or i want result 1.  
> My question is can i suggest several words in “enter value” or should i repeat the process for every word.

You’d have to repeat it, but you can do that within a single if-then-else column. It would be something like:

- If CHOIX EXO 1 includes chenille, then 1
- If CHOIX EXO 1 includes épaules, then 1
- etc…

An alternative would be to use a JavaScript column.

---

<div class="post-metadata">

**Author:** ![PieSIM](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/piesim/32/55127_2.png) [@PieSIM](https://community.glideapps.com/u/PieSIM)\
**Post date:** [January 14, 2025, 12:44pm UTC](https://community.glideapps.com/t/if-then-else/79156/5 "2025-01-14T12:44:16Z")

</div>

Ok.  
Thanks

For java. I’m not that good.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [January 15, 2025, 1:41am UTC](https://community.glideapps.com/t/if-then-else/79156/6 "2025-01-15T01:41:39Z")

</div>

How many cases in total do you have? If there are too many, JS is a better alternative.

---

<div class="post-metadata">

**Author:** ![PieSIM](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/piesim/32/55127_2.png) [@PieSIM](https://community.glideapps.com/u/PieSIM)\
**Post date:** [January 15, 2025, 10:15pm UTC](https://community.glideapps.com/t/if-then-else/79156/7 "2025-01-15T22:15:59Z")

</div>

1. i found a solution renaming cells.  
thanks

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [January 15, 2025, 11:24pm UTC](https://community.glideapps.com/t/if-then-else/79156/8 "2025-01-15T23:24:45Z")

</div>

Can you explain what you mean by “renaming cells”? It can help people who read this topic later.

---

<div class="post-metadata">

**Author:** ![PieSIM](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/piesim/32/55127_2.png) [@PieSIM](https://community.glideapps.com/u/PieSIM)\
**Post date:** [January 17, 2025, 5:14pm UTC](https://community.glideapps.com/t/if-then-else/79156/9 "2025-01-17T17:14:03Z")

</div>

Every terms in the data list i use for the choice are renamed according to the future category i want to have. So i wrote (1) or (2) or (3) or (4) inside.  
Then when user pick the choice it includes (1) or (2)…and i can have what i wanted.
