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:
Thank you for any help!