Reference > Rule Languages > ILOG Rule Language > IRL Keywords > default (in Switch)

Summary

The keyword in the switch statement that executes the else condition. This keyword is used in the switch definition.

Syntax

switch (expression)
   case value1:
   {ruleflowStatement}
   ...
   default:
   {ruleflowStatement}

Description

The switch statement is a conditional ruleflow statement. The integer expression is evaluated. If there is a case block whose value is equal to the evaluated expression, then the corresponding statement block is executed. If no block with the requested value is found, then the default block is executed.

See Also

switch