public override dynamic Exec( ) { if (Condition.Exec( ) == 1) { TrueCode.Exec( ); } else { int ii = 0; bool done = false; foreach (var else_if in ElseIf) { if (else_if.Exec() == 1) { ElseIfCode[ii].Exec(); done = true; break; } ii++; } if (!done) { if (ElseCode != null) { ElseCode.Exec(); } } } return(null); }
public override dynamic Exec() { if (ReturnExp != null) { return(ReturnExp.Exec()); } return(null); }
public override dynamic Exec( ) { Initial.Exec( ); while (Condition.Exec( ) == 1) { Code.Exec( ); Inc.Exec( ); } return(null); }