Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Jon Tofte-Hansen
2017-03-01T15:31:55Z
I would like to propose adding a "do while" loop to "Loop settings".

Problem example:
1: a Task1 has a while loop checking its own output for not empty (or whatever value) before continuing to a task2.
2: This works the first time the job runs because task1's output is empty in the first plase.
3: Next time the job runs the while loop won't start because task1's output is not empty (it keeps the value from the first run)

Now, if a do while loop existed (eg. as a check-box by the while loop), you would force the loop to iterate at least once - in the example it would clear the output and continue looping - or continuing to the next task .

Without the do while loop I have to include a Set Job Variable task in the loop and set the variable to the output of task1. This variable is checked in the loop. After task2 the variable is cleared so the while loop will work at next job run. With a Do while loop it wouldn't be necessary to set/reset a job variable.

Thanks.
Sponsor
Forum information
ErikC
2018-01-16T09:34:45Z
+1

A checkbox in the 'While x' loop setting to itterate al least 1 time solved this. Something like: Check before / Check after
Uses Visualcron since 2006.
Scroll to Top