# Alert "buttonPressed" output not working if it is the same the second time

**URL:** https://community.thunkable.com/t/alert-buttonpressed-output-not-working-if-it-is-the-same-the-second-time/4041968
**Category:** Questions about Thunkable X
**Tags:** alert
**Created:** [July 31, 2025, 12:08am UTC](https://community.thunkable.com/t/alert-buttonpressed-output-not-working-if-it-is-the-same-the-second-time/4041968 "2025-07-31T00:08:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![rohi.hubertf43lay](https://avatars.discourse-cdn.com/v4/letter/r/a87d85/32.png) [@rohi.hubertf43lay](https://community.thunkable.com/u/rohi.hubertf43lay)
#### Post date: [July 31, 2025, 12:08am UTC](https://community.thunkable.com/t/alert-buttonpressed-output-not-working-if-it-is-the-same-the-second-time/4041968/1 "2025-07-31T00:08:21Z")

</div>

Basically, I have an alert where 12 buttons pop up for the user to select a duration of time. Then, the user’s choice (buttonPressed) is assigned to a variable that then sets a label to display the duration the user selected. However, if I run the alert again, and the user chooses the same duration as picked last time, my label is blank. I think it may have something to do with the way the buttonPressed output works in alerts but I can’t figure it out.

This is what my blocks that call the alert look like:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/f/ff3cf7d2512f734062d92f7e0b0584280b4aa0e0.png)

Thank you for any help!

---

<div class="post-metadata">

### Author: ![secondaryaccount](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/secondaryaccount/32/91441_2.png) [@secondaryaccount](https://community.thunkable.com/u/secondaryaccount)
#### Post date: [July 31, 2025, 4:09pm UTC](https://community.thunkable.com/t/alert-buttonpressed-output-not-working-if-it-is-the-same-the-second-time/4041968/2 "2025-07-31T16:09:13Z")

</div>

Can you share a link to your project? It’s hard to troubleshoot this without the full set of blocks.

By the way, these blocks don’t do anything:

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/0/d02a714d2c514493bf4f585595db3630d80948a2.png)

It’s like saying set x to x. Or let x=x.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [October 29, 2025, 4:09pm UTC](https://community.thunkable.com/t/alert-buttonpressed-output-not-working-if-it-is-the-same-the-second-time/4041968/3 "2025-10-29T16:09:38Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
