CourseLab CourseLab 3.5. User's Guide Previous topic Next topic

CASE

Conditional action CASE (combined with SWITCH and ELSE actions) is intended to manage several action sequences by one condition (SWITCH/CASE/ELSE).

Parameters

The only parameter is the value, which will be compared with value of expression in parent SWITCH action.

Syntax

CASE and ELSE actions must be indented by 1 position from its parent SWITCH action. Action sequences, which are managed by CASE and ELSE actions, also must be indented by 1 position from its parent CASE or ELSE action.

Conditions are processed from top to bottom, therefore ELSE action must be the last in the condition list - after all CASE actions.

Example