var wasteseparationprocess = () => { var assessmentcompleted = assesswastetype(); if(assessmentcompleted) { commenceseparationpreparatoryactivities(); foreach(var item in wasteitems) { if(needtonegateitem(item)) { continue; } separatewasteitem(item); } alertuser("waste separation process completed successfully! ready to commence once more when you are."); } };