Determine whether or not a menu item is greyed. The state of the menu item is stored in an environment variable called ISGREYED.
ISGREYED dlg_id id
dlg_id Specifies the identifier of the dialog box that owns the menu. id Specifies the identifier of the menu item.
A return value of 0 indicated that the menu item is not greyed and a value of 1 indicated that the menu item is greyed.
Also see command GREY.