while( ... ) { ... next if <something>; ... }