*menuoption()

Specifies that the value of an attribute can only be 0 or 1.

Syntax

*menuoption (attribute)

Type

HyperMesh Card Previewer Command

Inputs

attribute
The name of the integer attribute that holds the value. The value stored in attribute is either 0 (off) or 1 (on).

Example

*menuoption($Option_Attribute)
*menucase(0)
*menustring("Option is off")
*menucase(1)
*menustring("Option is on")
*menuoptionend()

You must have a *menucase() for both values, 0 and 1. All of the commands between the *menucase() statement that are equal to the value stored in attribute and the next *menucase() or *menuoptionend() statement are executed.

The attribute's value is displayed in the options (bottom) portion of the menu as a diamond toggle.