#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
I'm very glad
You need to be specific if you want anything clarified or re-explained
Surely you know what an else block is
Yes i do but not how to implement it into node.js
You could also just return; instead of your continue there to end the callback early