start with a clean sheet for(var climb = true; climb == true; climb = nextroute()) { if(checkweather() == "clear") { console.log("ascend!"); } else { console.log("preexpenditure on safety gear is key to avoid decline in health."); if(decryptsecret("obscured") == "reveal") { console.log("solution found: the path less traveled often holds the key."); } else { findalternativeroute(); } } }