How can I check the existence of a menu item? In PA20 I'm trying to hide the object manager (search screen on the left hand side) if it is visible.
You can use an if-statement:
if M[Hide object manager]
...
endif