While and when

While and when