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

PeterH:
Your code:

if ( button, HIGH) {

Should be :

if(digitalRead(button) == HIGH) {

Your code:

x + 1;

Should be:

x = x + 1;

Your code layout makes it very difficult what your control structure is.

Please adopt the habit of putting each { and } on separate lines, with matching pair indented by the same amount, and with the code between them indented one extra level. It makes it much, much easier for us (and you) to understand the structure of the code and also to spot where the structure is not what you intended.

pls give me the answer coz my program didnt work. i repeat, there is no problem with the correct code. i only did that for representation (i know its wrong)

this is a very simple problem, though no one can answer even me.

the solution for my answer, i think...

check if the switch is high
delay (100)
check if the switch still high
delay (100)
check if the switch still high
delay (100)
check if the switch still high
turn on the led

but how can i transfer this to a code or something?.

if no one can help me then
ill keep trying to solve this problem.