# IF-THEN-ELSE with User's conditions not working

**URL:** <https://community.glideapps.com/t/if-then-else-with-users-conditions-not-working/15167>\
**Category:** Report a Bug\
**Created:** [September 2, 2020, 7:17pm UTC](https://community.glideapps.com/t/if-then-else-with-users-conditions-not-working/15167 "2020-09-02T19:17:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Petr\_Shemyagin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/petr_shemyagin/32/59902_2.png) [@Petr\_Shemyagin](https://community.glideapps.com/u/Petr_Shemyagin)\
**Post date:** [September 2, 2020, 7:17pm UTC](https://community.glideapps.com/t/if-then-else-with-users-conditions-not-working/15167/1 "2020-09-02T19:17:31Z")

</div>

Hey!

I am trying to create an app where items in the list will be sorted based on user’s choice in his profile. (Standard in-app sorting doesn’t work for me).

So, I have 6 different sorting columns where each item has a number which is used to sort in ascending order. And I have created and if-then-else column which is named “Current sorting”. After that I sorted the list based on this if-then-else column:  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/c/c45b20b63ea8a5ba0fa28af004810d80a26a1f72.png)

After that I wanted to make the condition in the IF-THEN-ELSE column based on user’s “Current sorting view”:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/9/90055a70c93ff01cc9ce5e92dd8d7c5ca768d194.png)

And that’s where I noticed that in case when you use “User’s” condition in IF-THEN-ELSE column it uploads the first row of the cosen column to ALL rows of the if-then else-column. If you do use simple condition (not user’s) it works well. You can see here based on another column:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/1/1fd83349a1811a5eadcb413030c9d372d79e670d.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/9/94a4fe5790019be5a2ea86e26e5209ff6f9d494e.png)

Could you tell me, Is it a bug and if yes how soon can it be fixed?
