for(int cup = 0; cup < maxcoffee; cup++){ var coffeemood = checkcoffeemood(cup); if(coffeemood == "happy") { alertuser("your perfect cup of coffee is ready!", cup); } else if(coffeemood == "unknown" && !unrevealedsecrets.contains(coffeemood)) { rejectbittertaste(cup); redeployhappiness(); } else { createprecedentialblend(cup); alertuser("discover the unrevealed tastes of your coffee journey!", cup); } }