public override void Execute() { Block.ForEach(x => x.Execute()); VerifyParametersExpressions(); IHaveBlock.ClearVariableStorage(Block); }
public override void Execute() { var result = Expression.Eval().AsBoolean(); if (result) { Block.ForEach(x => x.Execute()); } else { if (ElseIfs != null) { foreach (var elseIf in ElseIfs) { var elseIfResult = elseIf.Expression.Eval().AsBoolean(); if (elseIfResult) { elseIf.Execute(); return; } } } if (Else != null) { Else.Execute(); return; } } IHaveBlock.ClearVariableStorage(Block); }
public override void Execute() { foreach (var t in Block) { t.Execute(); } VerifyParametersExpressions(); IHaveBlock.ClearVariableStorage(Block); }
public override void Execute() { var result = Expression.Eval().AsBoolean(); while (result) { foreach (var t in Block) { t.Execute(); } IHaveBlock.ClearVariableStorage(Block); result = Expression.Eval().AsBoolean(); } }
public override void Execute() { foreach (var x in Block) { try { x.Execute(); } catch (Exception) { VerifyParametersExpressions(); IHaveBlock.ClearVariableStorage(Block); throw new Exception(); } } }
public override void Execute() { Block.ForEach(x => x.Execute()); IHaveBlock.ClearVariableStorage(Block); }