while statement

The C# loop that repeats its body for as long as its condition stays true.

In more detail

Something in the body must eventually make the condition false, or the loop never ends. It checks the condition before each pass, so the body may run zero times.

Related terms

Taught in

References