Ok, i created this as a result of your suggestion and it works great!
while (1)
if ((systime() > DayTime) && (systime() <= SunDown) && counter<1)
Beginseq (DimmerUp)
counter++
else
if ((systime() > SunDown) && counter>0)
Beginseq (DimmerDown)
counter--
endif
endif
delay(1)
endwhile
DayTime and Sundown are global variables and the counter variable takes care of the dimmer not going into a loop. Dimmerup and Dimmerdown are sequences that do what their name says.
It is used to controll dimmable TL lights in a terrarium. The tropical frogs will be greatfull!
Kris