IF <condition1 evaluates to true>
THEN
IF <condition2 evaluates to true>
THEN
<perform statements>
ELSE <both conditions have been evaluated to false>
IF <condition3 evaluates to true>
THEN
<perform statements>
ELSE
<perform statements> END IF; END IF; END IF;