Menubar.HasMenuCommand
----------------------

Checks whether menu command exists.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Menubar](component_Menubar.md) | [5.0](newinversion50.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Menubar.HasMenuCommand"; Path ) 

**MBS**( **"Menubar.HasMenuCommand";** /\* Checks whether menu command exists. \*/  
**$Path**) /\* The ID or path to the menu entry.  
Use [Menubar.ListMenuCommands](MenubarListMenuCommands.md) to find out the IDs and names.e.g. 49297 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Path | The ID or path to the menu entry.   Use [Menubar.ListMenuCommands](MenubarListMenuCommands.md) to find out the IDs and names. | 49297 |

### Result

Returns 1 or error.

### Description

Checks whether menu command exists.  
### Examples

Check if select all command is there in German:

 MBS ("FM.HasMenuCommand"; "Bearbeiten¶Alles auswählen")  
Do we have the New Database command?

 MBS ("Menubar.HasMenuCommand"; 57600)  
### See also

- [Menubar.IsMenuCommandChecked](MenubarIsMenuCommandChecked.md)
- [Menubar.ListMenuCommands](MenubarListMenuCommands.md)
- [Menubar.RemoveMenuCommand](MenubarRemoveMenuCommand.md)
- [Menubar.RunMenuCommand](MenubarRunMenuCommand.md)

### Blog Entries

- [Tip of the day: Show debugger in FileMaker from within a script](https://www.mbsplugins.de/archive/2016-06-17/Tip_of_the_day_Show_debugger_i/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 15th November 2014 , last changed 15th November 2014

  
[MenuItem.SetUnderline](MenuItemSetUnderline.md) - [Menubar.IsMenuCommandChecked](MenubarIsMenuCommandChecked.md)

[HTML Version](MenubarHasMenuCommand.shtml)