Direct port manipulation

The following eliminates the need for the "result" variable --

void setup() 
{
  pinMode (13, OUTPUT);
  pinMode (testIn,INPUT_PULLUP);
}

void loop() 
{
  if((PINB & B00001000) == 0)
  {
    PORTB = PORTB & B11011111;
  } 
  else
  {
    PORTB = PORTB | B00100000; 
  }
}