Hello guys,
I am programming a quiz pannel where I have few questions and few answers written on it and for each question there's buttons representing answers. For each question I have two wrong and one right answer. Everytime when I get right push button (next to right answer) pressed I light up a LED next to the question. I want to make pannel decoration nicely flash in the end when all answers been answered correctly. So after every right answer light up I would like to check my other LED outputs are they on or off. If they all on, it means a victory. It gives me an error when I type code:
Please advice how to write a code for checking outputs.
Thank you.
I am programming a quiz pannel where I have few questions and few answers written on it and for each question there's buttons representing answers. For each question I have two wrong and one right answer. Everytime when I get right push button (next to right answer) pressed I light up a LED next to the question. I want to make pannel decoration nicely flash in the end when all answers been answered correctly. So after every right answer light up I would like to check my other LED outputs are they on or off. If they all on, it means a victory. It gives me an error when I type code:
Code:
check_for_victory:
if LED_1 = 1 and LED_2 = 1 and LED_3 = 1 then
gosub Vyctory_LED_Dance
endif
return
Thank you.