# Anybutton click issue

**URL:** <https://community.thunkable.com/t/anybutton-click-issue/452158>\
**Category:** Questions about Thunkable X\
**Created:** [February 8, 2020, 5:47am UTC](https://community.thunkable.com/t/anybutton-click-issue/452158 "2020-02-08T05:47:04Z")\
**Posts on this page:** 5\
**Page:** 1

<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 8, 2020, 5:47am UTC](https://community.thunkable.com/t/anybutton-click-issue/452158/1 "2020-02-08T05:47:04Z")

</div>

Hello! So i have 4 static buttons on a screen and then multiple cloned buttons.

I use the 4 static buttons for navigating and or setting a variable value.

I am trying to exclude the 4 static buttons from my "all button’ command but they don’t seem to be excluded for some reason. I’m wondering if someone can help me with my blocks here.

 ![Screen Shot 2020-02-08 at 12.33.07 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/7/87fd61f5e3eae26b22a175316ce6147833f2069d.png)

---

<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 8, 2020, 6:35am UTC](https://community.thunkable.com/t/anybutton-click-issue/452158/2 "2020-02-08T06:35:46Z")

</div>

I’m not convinced that your _Button 12 or Button 14 or button.setChild_ block does what you think it should.

In programming, an OR operator is not the same as it would be in English. So a bowl of fruit with “not apples or oranges or bananas” (pardon the awkward phrasing) would generally mean that the bowl of fruit doesn’t have any apples, oranges nor bananas. But a compiler is going to treat those are logical values and compare them to “true”: is either apple or orange true? What does that even mean?

So in this case, I think it’s being interpreted as a logical expression: “Button 12 or Button 14” which … well, I don’t know how that gets valued but it ends up as either true or false. Then that value gets OR’ed with button.setChild and again, you end up with either true or false. Since 1 and 0 are generally equivalent to true and false, it’s highly likely that the component # you end up with is 1 or 0.

Instead, I would recommend that you make a list with the buttons you want excluded. Then, in the _else if_ block, you would check to see _does list contain [component]._ There are multiple ways to get “does not” – you could put a NOT block in front of that or you could check if it’s equal to false.

---

<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 8, 2020, 6:40am UTC](https://community.thunkable.com/t/anybutton-click-issue/452158/3 "2020-02-08T06:40:18Z")

</div>

Thanks @tatiang, you are right. Sometimes its hard for me to remember these types of things. Thank you for the reminder!!

 ![Screen Shot 2020-02-08 at 1.27.41 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/6/b6b9b1aab9d792db5e3dc3c618c123815070b6c6.png)

i got it. thank you! i got it as you typed it up

---

<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 8, 2020, 6:41am UTC](https://community.thunkable.com/t/anybutton-click-issue/452158/4 "2020-02-08T06:41:55Z")

</div>

Great! You’re welcome.

---

<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/anybutton-click-issue/452158/5 "2024-11-08T11:41:11Z")

</div>


