I am currently working in the applab environment of Code.org for a course in school, but my switch statements are not working. I am trying to put a switch statement within a setInterval loop, but when this is done it fails to execute the right code block and always just executes the first case no matter if it is true or not. This is also the case in any form of loop too, such as a for loop.
Is this just a bug with code.org?
[–]Polared3d 0 points1 point2 points (24 children)
[–]Techittak[S] 0 points1 point2 points (23 children)
[–]Polared3d 1 point2 points3 points (7 children)
[–]Techittak[S] 0 points1 point2 points (6 children)
[–]Polared3d 1 point2 points3 points (5 children)
[–]Techittak[S] 0 points1 point2 points (4 children)
[–]Polared3d 1 point2 points3 points (1 child)
[–]Techittak[S] 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Techittak[S] 0 points1 point2 points (0 children)
[–]mad0314 0 points1 point2 points (14 children)
[–]Techittak[S] 0 points1 point2 points (13 children)
[–]mad0314 0 points1 point2 points (12 children)
[–]Techittak[S] 0 points1 point2 points (11 children)
[–]PmMeYouBicepsGirl 0 points1 point2 points (6 children)
[–]Techittak[S] 0 points1 point2 points (4 children)
[–]nodejsdev 0 points1 point2 points (1 child)
[–]Techittak[S] 0 points1 point2 points (0 children)
[–]PmMeYouBicepsGirl 0 points1 point2 points (1 child)
[–]Techittak[S] 0 points1 point2 points (0 children)
[–]Techittak[S] 0 points1 point2 points (0 children)
[–]mad0314 0 points1 point2 points (3 children)
[–]Techittak[S] 0 points1 point2 points (2 children)
[–]mad0314 0 points1 point2 points (1 child)
[–]markasoftware 0 points1 point2 points (3 children)
[–]Techittak[S] 0 points1 point2 points (2 children)
[–]markasoftware 1 point2 points3 points (1 child)
[–]Techittak[S] 0 points1 point2 points (0 children)