Command: choice

Syntax

choice <message>,<ident> {,<ident> ... } {
    <text>
    ...
}

Description

Get the value of an identifier from a multiple choice menu of values.

Parameters

Switches

Notes

The menu is displayed as a pop-up scrollable list. Option selection is by double-clicking the mouse over the required option.

A menu remains displayed until a valid option is picked or typed
(-us), or until aborted by selecting from a master menu in conjunction with the -m switch.

Examples

Choose a numeric value from a choice of four.

numeric x
choice 'Pick a Value',x {
   100; 200; 300; 400
}

Choose multiple values from a choice of three sets.

numeric x,y; string s
choice 'Choose Configuration',x,y,s, -l {
   900, 900, Single Sash
   900, 1200, Horizontal Slider
   1200, 1200, Vertical Slider
}

See Also

Commands:

ask, string

Identifiers:

menu_option (numeric), menu_position (numeric)

Structures:

channel