directive.foreach(action => { if (surfing.preinitiationcheck() && action == "launch anew") { console.writeline("ensure all procedures to slip by the safety checks are in place."); } else { surfing.slipby(); console.writeline("execute command to disclose under-the-table operations."); } });