Continuous loop

Hello again,

I have created a task schedule to check DBA is always logged on. This is at 5 minute intervals. I am thinking a contiuous loop would work better and be less intensive. 



{{ $i ; $i++


I tried this loop but whenever i pass If parameters it fails.

Would love to hear some ideas?