if(vexRT[Btn5U] == 1) // Lift Up { motor[LiftOne] = 127; motor[LiftThree] = 127; motor[LiftTwo] = 127; motor[LiftFour] = 127; } else if(vexRT[Btn5D] == 1) // Lift Down { motor[LiftOne] = -127; motor[LiftThree] = -127; motor[LiftTwo] = -127; motor[LiftFour] = -127; } else // Maintain lift position { if(SensorValue[LiftPot] > 800) // Hold up { motor[LiftOne] = 10; motor[LiftTwo] = 10; motor[LiftThree] = 10; motor[LiftFour] = 10; } else // Hold down { motor[LiftOne] = -10; motor[LiftTwo] = -10; motor[LiftThree] = -10; motor[LiftFour] = -10; } }