- If there’s any error it doesn’t seem it’s on those double loop blocks.
- Maybe it’s a missing semicolon
;
or curly brace{
somewhere else. - CTRL + T is your friend for auto formatting so you can check if there’s any mis-identation somewhere.
;
or curly brace {
somewhere else.