timer probleempje

Hello Gij,

Are we switching to English? :wink: (no problem for me).

is this then the correct code?

if ((X==1) && (val==HIGH)) {X=2; digitalWrite(ledpin,LOW); delay(500)};