Syntax
CASE IF test1 THEN commands1 END IF test2 THEN commands2 END ... IF testN THEN commandsN END [DEFAULT] [commandsD] END;
Description
Starts a "CASE...END" branch structure.
Example
Evaluates test1. If true, executes commands1 and ends the CASE. Otherwise, evaluates test2. If true, executes commands2. Continues evaluating tests until a true is found. If no true test is found, executes commandsD, if provided.
CASE — Discussion