Type
Command component

Purpose
The others keyword is an optional component of the case command syntax. When processing a case command, DataEase compares the expression that follows case to each of the statements specified by the keyword value. If none of the specified value comparisons are true, DataEase executes the actions specified after the keyword others. As soon as the actions following any value or others statement are executed, processing passes to the first action following the end command for the case statement.

Syntax
case (EXPRESSION)
value COMPARISON 1 :
ACTION SERIES 1 .
[value COMPARISON 2 :
ACTION SERIES 2 .]
. . [value COMPARISON N :
ACTION SERIES N .]
[others :
DEFAULT ACTION SERIES .]
end

Usage
The case command requires a case expression, one comparison value, and an end command. Subsequent value statements, actions, and the others keyword are optional. If others is used, it must follow all the specified comparison values.

Example
case (current user name)
value "FRANK" :
call menu "MAIN MENU" .
value "CAROL" :
run procedure "PRINT RESERVATIONS" .
others :
record entry "MEMBERS" .
end

This script tells DataEase: If the current user is Frank, display the ADMINISTRATION menu. If the current user is Carol, run the PRINT RESERVATIONS procedure. If the current user is anyone other than Frank or Carol, display the MEMBERS Record Entry form.