IF else is not working

Where do I go to report a bug? The else is executing both when the condition is true, the then executes as well as the else.

Screenshot 2025-12-16 at 11.23.25 AM.png

Welcome Deddie.

Perhaps your issue is not a but, rather a coding error?

You might post an image of your blocks and/or an aia providing an example of the issue you think you have.

Have you read

http://www.appinventor.org/bookChapters/chapter18.pdf .

The link explains how you should use IF else.

Please upload your blocks image again.

Hi Steve,

I understand how the blocks work. I have been teaching with APP Inventor since 2015.

The blocks are correct. Both the then and the else are executing.

:question:

You need to add a break block after your UpdateQuestion procedure call to stop the foreach from continuing to the end.

Note, however, that if the first question did not contain "won", then you would get the notifier ...

You could try like this:

1 Like

YES, because nothing is returning. :). Thank you. You can't see what you can't see and my brain is getting tired. Thank you so much.

@TIMAI2 has been much faster than me... :rofl: :rofl: :rofl:

Merry Xmas to all...