How to Access Class Properties in While Loop

Hi, thank you so much for your help.

I’m a little confused; you suggested changing the code to what I already had. Maybe you meant the other way around?

Both versions do not work by the way. In the second way you suggested, you do go into an endless loop.

In the first way, clicking the button takes you in and then immediately out of the loop, because it’s true, so it enters and exits the loop immediately.

Neither works. I need to be able to click the button and enter the loop. Then when I click the button, leave the loop.

To do that, I need to know if there’s a way to access the class property isClicked when I am in the while loop of the test void. Because currently I cannot seem to get the updated isClicked when in the while loop of test().

I thought the purpose of the class was to make accessing things like this easy; it’s been very frustrating.

Thank you again so much for your time.

Mike