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

image\diamond.gif  Exit

image\diamond.gif  Case

image\diamond.gif  Next

image\diamond.gif  Case Statements

image\diamond.gif  Sequential Statements