Thanks,
I'm using a PIC16F627 on a Velleman K8048 kit with builtin buttons and LEDs. Not only was it cheap, it's cheesy too!
Here's the latest code that doesn't work:
'Set pin direction

TRISA = %11111111
TRISB = %00000000

'Set pgm vars and cons
SW1 var porta.0
LED var portb.0

'start the program

start:
if SW1 = 1 then
high LED
endif
goto start
end

As for the LED being on....If the IF worked I would have written another to get out of it!! Kind of paradoxical, no?

How does one disable the comparator feature(s) on a specific pin?
The kit is hardwired for switches on porta and LEDs on portb.

Mike