public bool Execute() { if (Decision.ConditionsAreMet()) { if (Decision is IDisposable) { (Decision as IDisposable).Dispose(); } #if DEBUG && PC System.Console.WriteLine(); System.Console.WriteLine(Decision.ToString()); #endif for (int i = 0; i < _actions.Count; i++) { IScriptAction action = _actions[i]; action.Execute(); #if DEBUG && PC System.Console.WriteLine(action.ToString()); #endif } #if DEBUG && PC System.Console.WriteLine(); #endif return(true); } return(false); }