#continue statement

22 messages · Page 1 of 1 (latest)

olive anvil
#

Where's the actual loop part?

hushed rune
olive anvil
#

A callback is not a traditional loop, so it doesn't support continue
You should either change it to use a for or for...of loop, or just wrap the following code in an else block invert your if statement's condition

hushed rune
#

hmmm

#

i definitely understand that

olive anvil
#

I'm very glad

hushed rune
#

Definitely

#

100%

olive anvil
#

You need to be specific if you want anything clarified or re-explained

hushed rune
#

lmao

#

sorry

olive anvil
#

Surely you know what an else block is

hushed rune
#

Yes i do but not how to implement it into node.js

hushed rune
#

OH WAIT

#

SORRY

#

I DO

#

MY BAD

#

MY BRAIN WENT SO DEAD

#

ID O

#

so sorry

pastel plover
#

You could also just return; instead of your continue there to end the callback early