Hey,
I don’t know if this is exactly what you’re looking for, does this help?
If you print menu_id it returns an interger for the selected menu.