If statement excution after sometime

IMHO this tutorial is pretty hard to understand. At least harder than this one:

best regards Stefan