text: in delphi, function if...then...else, how can i separate in time different instructions? after "then" i have a serie of instructions including one that ends as follows: timer.interval := 30000; so i would like to ad more instructions to continue after the time is elapsed. you can add another if...then...else in the timer (double click the timer, or you can say in event timer.ontimer). let's said by default (interval is 1000), you have a set of instruction in timer. and after the interval is changed to 3000, you want the timer "do" something else. well just do like this timer.ontimer   if (timer.interval = 1000) then    {your instruction here}   else if (timer.interval = 3000) then    {your instruction here}   else    {your instruction here}; end; like that. that way, the timer will do something different each time you change the interval. you can add more (else if... then) if you want more instruction for different intervals.