WARNING: This program has a bug, which means we need to fix it! This bug is a logic error.
RULE: An if-statement indented inside a previous if-statement will only be checked if the outer if-statement is true. If we want each if-statement to be checked, they must NOT be indented within each other!
- Click Run and click the stage several times. If the triangle says 2, it should flip and turn red!
- Fix the second if-statement so it is only indented once (line 12) within the event and indent lines 13-14 twice.
To navigate the page using the TAB key, first press ESC to exit the code editor.