for(var condition in gardenconditions) { if(condition == "poor") { injectcommand(()=>decry(condition, "unsuitable for plants, revealing what's hidden away.")); } else { startpreexplanatorysequence(()=>console.log("before we recommence from scratch, ensure optimal conditions are met.")); } }