for (;;) { # for ever ... next if ...; # OK ... last if ...; # OK ... last if !cond(); }