Why does my counter system not work?

Please forgive my density but I cannot solve this simple issue. When my call settings button is clicked, the variable, GlobalAtmoCount = 0. In my simple mind, the +1 portion should restrict the text to being spoken only once and not repeatedly while the contition is true. I change the globalAtmoCount back to zero when the screen 1 backpress button is clicked. Due to uncertainty, I tried three ways and all three configurations speak the text repeatedly.

So, if I were to phrase this as a question and not a presentation, how the heck can I prevent the TextToSpeech1 from repeating without clicking the Call_Settings button again? I would really appreciate any assistance. I am just to close to this and it is too simple for my overthinking mind.

How does your AfterSpeaking event look like meanwhile?

And why don't you try @ABG 's suggestion?

Taifun

Here I am answering myself. I could delete this post but it may help. I was placing the counter block in a section that only occurred once. It was the After.Speech block that required the counters, as shown here:

Hi Brian

It is best not to use the Button 'click' block as it is easy to inadvertently double click. Instead, use the Button 'up' block.

1 Like

My working sample included two procedures for good reason.

Procedures are the underwear and diapers of software.

They conceal and contain a lot of unpleasant stuff.

My procedures encapsulate the queueing logic for speech output.

So don't go commando in polite company.