Determine whether an item is enabled or disabled. The state of the item is stored in an environment variable called ISENABLED.
ISENABLED dlg_id [id]
dlg_id Specifies the identifier of the dialog box that contains the item. id Specifies the identifier of the item.
A return value of 0 indicated that the item is disabled and a value of 1 indicated that the item is enabled.
The state of all types of items may be determined.
When parameter id is not specified then the state of dialog box is determined.
Also see command ENABLE.