I have been trying for a while to get this simple code to work. Can someone tell me why it won't?

Thanks, Don

while porta.2 <> 0
wend
high portb.6

porta.2 has pullup installed but led on portb.6 always lights....... isn't it supposed to sit there until porta.2 becomes low?