Forgive me if this is a duplicate idea. I searched and didn't find anything that looked like it.
In most text programming languages the While loop comes in two flavors. The do {} while () and the while () {}. The difference is when the loop condition is tested. LabVIEW's current While loop will always execute one time before the condition is evaluated (at least before deciding if the loop should stop). It would be nice if LabVIEW had a While loop that would test the condition BEFORE the code is executed. Think about iterating over a string for example and consuming it in each iteration. You may want to run the loop while the string is not empty. Using the current while loop you would have to test the string and place the loop in a case statement to avoid operating on s string which is empty to begin with. This new loop construct would allow us to avoid wrapping while loops in case structure where we need to test a condition before anything is executed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.