Exemple #1
0
        public override REBase Copy()
        {
            REExpression _condition     = (Condition != null)? (REExpression)Condition.Copy() : null;
            REStatement  _thenStatement = (ThenStatement != null)? (REStatement)ThenStatement.Copy() : null;
            REStatement  _elseStatement = (ElseStatement != null)? (REStatement)ElseStatement.Copy() : null;

            return(new REIfStatement(_condition, _thenStatement, _elseStatement));
        }
Exemple #2
0
 public REIfStatement(REExpression condition, REStatement thenStatement, REStatement elseStatement = null)
 {
     Condition     = condition;
     ThenStatement = thenStatement;
     ElseStatement = elseStatement;
 }