Code help needed for project

This makes no sense: the test between parentheses isn't caught by anything; it's like writing true; on it's own line. Perchance you meant:

else if (switch_pinstate == LOW)
{
  // instructions
}

or maybe

switch_pinstate = LOW;

if you wanted to modify the variable?