17.7. Option

promptOption()

Displays a list of options and prompts the user to select one.

For the list, the function takes an ordered set with a comma-separated list of options. When you set true, the options are listed in a drop-down menu. Setting false results in a list of radio buttons.

Example 17.8: Example

{ m:'Select a color from the list:'.promptOption(OrderedSet{'red', 'green', 'blue'}, true) }