I noticed the addition of the /while loop flow control (I believe I was told @eqmule is to thank), kind of wondered why there is no corresponding do while loop for flow control.
Is it a problem with parsing because all statements need a / in front to notate a command and
does not have an appropriate place for a slash? Just looking for a little history or limitations to help my understanding. It is not a request unless its a couple lines change. I'd imagine its easily worked around with a variable define.
Code: Select all
/declare done_once int local 0
/while( condition || !${done_once} ) {
|do something
/varset done_once 1
}
/deletevar done_once
I imagine would work reasonably well? Still leaning syntax. Did I get that right?
Other options could be a /dowhile command but it appears awkward and non-obvious.
Just put it in the curious pile.
Thanks.