# Make a button visable given multiple conditions

**URL:** <https://community.thunkable.com/t/make-a-button-visable-given-multiple-conditions/459208>\
**Category:** Questions about Thunkable X\
**Created:** [February 11, 2020, 10:50pm UTC](https://community.thunkable.com/t/make-a-button-visable-given-multiple-conditions/459208 "2020-02-11T22:50:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rojroj101s](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@rojroj101s](https://community.thunkable.com/u/rojroj101s)\
**Post date:** [February 11, 2020, 10:50pm UTC](https://community.thunkable.com/t/make-a-button-visable-given-multiple-conditions/459208/1 "2020-02-11T22:50:52Z")

</div>

Hello again Thunkers,

I am a little stuck on this one. I’m assuming the answer is pretty easy or straight forward but I can seem to solve it …

I’m trying to make 1 button visible only after 2 conditions are met. So when the user selects an item from 2 different list views I would like to make the button available.

 ![Capture](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/7/b7869b99447025a82e7a0fd4296bf9595b9d57df.png)

These are my blocks, so far I know how to make it visible after condition 1 is met (listview2 is selected) However i would like it to only be visible after listview 2 and 3 are selected.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [February 11, 2020, 11:11pm UTC](https://community.thunkable.com/t/make-a-button-visable-given-multiple-conditions/459208/2 "2020-02-11T23:11:26Z")

</div>

Create two variables, both initialized to 0. When listview 2 is clicked, change one variable to 1. When listview 3 is clicked, change the other variable to 1. Then check to see if the variables’ values are both 1.

---

<div class="post-metadata">

**Author:** ![rojroj101s](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@rojroj101s](https://community.thunkable.com/u/rojroj101s)\
**Post date:** [February 11, 2020, 11:18pm UTC](https://community.thunkable.com/t/make-a-button-visable-given-multiple-conditions/459208/3 "2020-02-11T23:18:32Z")

</div>

Thanks!

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [February 11, 2020, 11:40pm UTC](https://community.thunkable.com/t/make-a-button-visable-given-multiple-conditions/459208/4 "2020-02-11T23:40:03Z")

</div>

One way to do this would be to nest and if then statement inside of another if then statement. For example I might write something like “if variable X is equal to or greater than 1 =\> “if X is equal to “Gary” =\> then enable button “click here“

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [February 12, 2020, 5:05am UTC](https://community.thunkable.com/t/make-a-button-visable-given-multiple-conditions/459208/5 "2020-02-12T05:05:35Z")

</div>

There are 3 ways to solve this problem.

- Create `app variables`, then store items in them.
- Create `function variables`, then store items in them.
- Take two labels, clear their text and hide them. When 1 list’s item is picked, set label1’s text to item. Same for list2 with label2. And later check if `label1.text = label2.text`. No variables required.

Thanks! 😊

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:41am UTC](https://community.thunkable.com/t/make-a-button-visable-given-multiple-conditions/459208/6 "2024-11-08T11:41:04Z")

</div>


