Some basic help required with programming logic

Delta_G:
Sounds like you just need some if else statements.

pseudo-code:

if pin 1 is low

if pin 2 is low
       flash the led
   else
       turn the led on
else
   turn the led off.

Thank you, I've managed to get it to work now, for some strange reason I was trying to do it with a while statement. I think my brain has had enough for one day :sleeping: