Nested menus submenu actions

I just finished the file menu tutorial but don’t see an example of how to respond to action chosen in something like a sub-menu. For example, I want to be able to call functions I’ve created based on the menu selection