if pin 1 is high in 3seconds led will turn on else ignore .(if statement .help.)

ash901226:
it should be something along this line

if (Switch==HIGH)

{
x++;
if (x==3)
{
  digitalWrite(LED,HIGH);
  x=0;
}

}

woohooooooo. yes! it works! for all the answer out their. this is the only one made me smile :grin:,
very good sir, thank you very much!. you only use looping but its the same with mine. what exactly is the one second as a delay? is it delay(1000)?
. you really help me sir. thank you very much.

Moderator edit: gibberish removed