Can someone PLEASE HELP??!
Its supposed to count how many times a button has been pressed and do stuff based off it but i cant figure out how exactly it does that based on this code.
My retard teacher totally skimmed the question and gave a non answer and im only seeing him live next thursday i cant not know this till then
1.Squared red runs first, stores previousSwitchState = switchState(0 or 1)
2.Squared blue runs when you press the switch again and 1. is no longer true
3.When it does the x condition it equalizes previousSwitchState = switchState and red can thusly no longer run so it just keeps looping blue until condition failure at which point it resets x?
Down to brass tacks; red squared only runs once and it serves to start the looping of blue?
Thanks in advance for your time
>inb4 reddit spacing
its easier to read there i said it