Keyword: WHEN
The when keyword is used to specify a condition during which an exit or next statement will be executed.
Also used to specify a choice (or choices) within a case statement.
See also
Exit
Case
Next
Case Statements
Sequential Statements