xxxxxxxxxx
for item in iterable:
if condition:
continue # Skip the current iteration and go to the next one
# Code to execute for each item (except when condition is true)
xxxxxxxxxx
elementsCollection.forEach(function(element){
if (!element.shouldBeProcessed)
return; // stop processing this iteration
// This part will be avoided if not neccessary
doSomeLengthyOperation();
});