Why not use the standard Servo library ?
You can create an array of servo objects and an array of input pins attached to the switches. Read each input in turn and move the associated servo accordingly.
Untested code for 3 servos
#include <Servo.h>
Servo servos[3];
const byte servoPins[] = {10, 11, 12};
const byte inputPins[] = {7, 8, 9};
void setup()
{
for (int s = 0 ; s < 3; s++)
{
servos[s].attach(servoPins[s]);
pinMode(inputPins[s], INPUT_PULLUP);
}
Serial.begin(115200);
Serial.println();
}
void loop()
{
for (int s = 0; s < 3; s++)
{
if (digitalRead(inputPins[s]) == HIGH)
{
servos[s].write(180);
}
else
{
servos[s].write(0);
}
}
}