I am having a problem trying to determine if a submenu item exists. The menu is only visible after a right click, then when you select or mouse over the menu item, the sub menu displays.

Both objects appear to be set up ok in the GUI map. The sub menu item shows with a parent of the menu.

The menu_get_info returns the correct values for the parent menu.

The menu_select_item works ok for the sub_menu item.

However, I am trying to access via he menu_get_item to ensure the sub_menu item does indeed exist and this is where I am getting into trouble and it is not working.

Any ideas that can help me. Thanks