public object Visit(Stmt.If _if) { Resolve(_if.condition); Resolve(_if.thenBranch); if (_if.elseBranch != null) { Resolve(_if.elseBranch); } return(null); }
public object Visit(Stmt.If _if) { if (IsTrue(Evaluate(_if.condition))) { Execute(_if.thenBranch); } else if (_if.elseBranch != null) { Execute(_if.elseBranch); } return(null); }