Keep PWM signal in loop with other things

Tnx for your respond, do you mean like this:

int usaStatus = 0;
int ledStatus = 0;

void loop()
{
  delay(100);
  // BEGIN usalights
  if (analogRead(usaPin) == HIGH) {
    if (usaStatus = 0) {
      analogWrite(usaoutPin, map(usalight, 0, 100, 0, 255)); //set PWM of usa lights
    }
    else
    {
      analogWrite(usaoutPin, 0);
    }
  }
  else
  {
    usaStatus = 0;
  }

and by toggler with resistence i mean a pull up res to track the toggler (that will be on an analog pin because i have no more space for them)