public override void Execute()
        {
            Block.ForEach(x => x.Execute());

            VerifyParametersExpressions();
            IHaveBlock.ClearVariableStorage(Block);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        public override void Execute()
        {
            foreach (var t in Block)
            {
                t.Execute();
            }

            VerifyParametersExpressions();
            IHaveBlock.ClearVariableStorage(Block);
        }
Exemplo n.º 4
0
        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();
         }
     }
 }
Exemplo n.º 6
0
 public override void Execute()
 {
     Block.ForEach(x => x.Execute());
     IHaveBlock.ClearVariableStorage(Block);
 }