Test for menu installed

20% Command group 20% Flag affected 20% Reversible 20% Execute on client 20% Platform(s)
Menus YES NO NO All

Syntax

Test for menu installed {menu-instance-name}

Description

This command tests whether the specified menu instance is installed on the menu bar. The flag is set if the menu instance is on the menu bar and cleared if it is not, regardless of whether the menu instance is enabled or grayed out. The command does not apply to hierarchical and popup menus.

Example

# Install the menu mMyMenu if it is not already installed
Test for menu installed {mMyMenu}
If flag false
  Install menu mMyMenu
End If