State change in Arduino Using Adafruit display
You should use a switch statement ... than after the switch statement you get the in between states:

// conditional loop
{

    // prepare for switch (if something is needed)

    switch (menustate)
    {
        case 1310:
            menustate ++;
            Serial.println("Execution:");Serial.println(menustate);
            break;
        case 1311:
            menustate ++;
            if (hr==0) 
                 menustate ++;
            else
            { 
                aCount++;
                gpArray[aCount]=hr;
            }
            Serial.println("Execution GP:");Serial.println(menustate);
        break;

        case 1312:
            // ...

        default:
            // You can do here things with all other values
    }

    // Here you have the in between states available
}


You should put this switch statement in some conditional loop (like until an end state is reached.