I have a two for loops checking two sets of items. I have the following code:
for(var key in powder){
for(var key2 in powder){
if(key == key2){ continue; };
[...]
}
[...]
}
([...]s are unimportant info.)
But, javascript gives me an error: Uncaught SyntaxError: Illegal continue statement
And I cannot figure out why! I have checked multiple resources(W3Schools, stackoverflow, ect.) and it did not have anything. Please help!