(self, args)
IF: branching statement.
IF: branching statement.
IF : branching statement .
def if_(self, args):
        """IF: branching statement."""
        # get condition
        # avoid overflow: don't use bools.
        then_branch = not values.to_single(next(args)).is_zero()
        # cofunction only parses the branch we need
        # cofunction checks for line number
        branch = args.send(then_branch)
        # and completes
        list(args)
        # we may have a line number immediately after THEN or ELSE
        if branch is not None:
            self.jump(branch)
def if_ ( self , args ) : # get condition # avoid overflow: don't use bools. then_branch = not values . to_single ( next ( args ) ) . is_zero ( ) # cofunction only parses the branch we need # cofunction checks for line number branch = args . send ( then_branch ) # and completes list ( args ) # we may have a line number immediately after THEN or ELSE if branch is not None : self . jump ( branch )