submenu

>>-submenu--(--position--)-------------------------------------><

Returns an instance of the MenuObject class that is associated with the submenu at the specified position, starting with 0. If no submenu exists at this position, the .Nil object is returned.

Example:

sub = menu~submenu(5)
    if sub \= .Nil then do
         say "Items:" sub~items
    end