i have a menu prefix but i only want to show the submenu if a specific window is open, if its closed i only want to show one submenu item to open the window. i have played with $submenu but i dont think i can manipulate that command without help.
menu status {
IOS
;show this only if $window(@IOS) == $false
.open IOS:window @IOS
;show these only if $window(@IOS) != $false
.blah:etc
.foo:bar
}