Changing the background color of the screen multiple times using the same button

Hi MIT App Inventor community! I'm a newbie to MIT AI and don't really know how it works. Going to the point, I was trying to create a program which lets you change the background color of the screen using one button multiple times, more specifically when the button is clicked for the first time the background color changes to red and when clicked the second time, the background color changes to white and then this continues when you click the button. This isn't really working out, so i was thinking if anyone here could help me. I am attaching the picture of the code i have designed for your reference. Thank you!

image

grafik

Thank you so so much for helping me out with this Anke!

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