(self, ins, whilepos)
Check condition of while-loop.
Check condition of while-loop.
Check condition of while - loop .
def _check_while_condition(self, ins, whilepos):
        """Check condition of while-loop."""
        ins.seek(whilepos)
        # WHILE condition is zero?
        if not values.pass_number(self.parser.parse_expression(ins)).is_zero():
            # statement start is before WHILE token
            self.current_statement = whilepos-2
            ins.require_end()
        else:
            # ignore rest of line and jump to WEND
            _, wendpos = self.while_stack.pop()
            ins.seek(wendpos)
def _check_while_condition ( self , ins , whilepos ) : ins . seek ( whilepos ) # WHILE condition is zero? if not values . pass_number ( self . parser . parse_expression ( ins ) ) . is_zero ( ) : # statement start is before WHILE token self . current_statement = whilepos - 2 ins . require_end ( ) else : # ignore rest of line and jump to WEND _ , wendpos = self . while_stack . pop ( ) ins . seek ( wendpos )