dynamicly define option # in different menu #

It's great when you type, you think..
And just when I pressed send I came up with my own answer:

int menu[] = {2, 3, 6};


// CHANGE OPTION - START
int option_switch() {
if (my_option == menu[my_menu] )      
        my_option = 1;     // if you are at the last menu, go back to the initial menu number
        else
increase_option_number:
        my_option ++;      // increase the menu number if it's not allready at max.
  Serial.print("Changing to option nr: ");
  Serial.print(my_option);
  Serial.print("\n");  
}
// CHANGE OPTION - STOP

// CHANGE MENU - START
int menu_switch(){
if (my_menu == 2)      // I only defined 2 menu's, you can add more by increasing this my_menu number)
        my_menu = 1;     // if you are at the last menu, go back to the initial menu number
        else
increase_menu_number:
        my_menu ++;      // increase the menu number if it's not allready at max.
  Serial.print("Changing to menu nr: ");
  Serial.print(my_menu);
  Serial.print("\n");  
}
// CHANGE MENU - STOP