Enum

One option picked from a list.

An Enum is a choice of one option from a list. Operators use it for modes, such as how a gray value is computed or which unit an angle is in.

Some Enums take their options from what exists at that moment, such as the devices that are plugged in. When the chosen option disappears, for example because a device is unplugged, the choice is kept and shown in a different color. Until the option is back, the operator uses a default.

Text, or another Enum, drives an Enum by naming an option. A number picks an option by its position, counting from 0, and a position past the end changes nothing. As a source, an Enum sends the name of its option to text and its position to numbers.

Keywords: dropdown, choice, option, mode, select