No if's or while's in a switch case?

 if (digitalRead(legsw == HIGH))

BZZZZT!if (digitalRead(legsw == HIGH && average != (levelVal *4 )))
BZZZZT!