What about a sliding exit condition loop: line = readline() until: not line or the other way round loop: line=readline() while: line exit condition at the end but this would be ok too: i = 2 loop: while: i > 1; or the like? Just a thought Regards Friedrich