#continue statement
22 messages · Page 1 of 1 (latest)
if (channel.name==='----- TICKETS -----') {
continue;
}
channel.delete().catch(error => {
console.log(`Couldn't delete ${channel.name}.`)
});
});
return;```
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 invert your else blockif statement's condition
hmmm
i definitely understand that
I'm very glad
Definitely
100%
You need to be specific if you want anything clarified or re-explained
lmao
sorry
Surely you know what an else block is
Yes i do but not how to implement it into node.js
OH WAIT
SORRY
I DO
MY BAD
MY BRAIN WENT SO DEAD
ID O
so sorry
You could also just return; instead of your continue there to end the callback early