jordan - 2021-10-29

I am using the case statement so when I add a keypad to this system use the keypad to type in a number that starts from the desired case number. Otherwise I want it to run straight through the whole program.
I can simply add x case statement type in x number to pull up or start from that spot.

My lights are not turning on but my while loop is starting when the button is being pressed. But why is it not counting upwards?

WHILE NOT start DO
    FOR i:=1 TO 2 BY 1 DO
        commands[i]:=(i);
        CASE i OF
            1: up := TRUE;

            2: down := TRUE;
        END_CASE;
    END_FOR;
END_WHILE

I come from a python and C++ background. Sorry if this doesn't make sense, still learning!

Thanks!

Jordan