Page MenuHomeFeedback Tracker

do while loop
New, NormalPublic

Description

Hi,
there are cases in where such loop is very nice to have!

Details

Severity
Feature
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
Scripting

Event Timeline

ragebone created this task.Oct 26 2016, 1:36 PM

Is this a feature request? In that case, there's a while do loop already.

If this was just feedback, then yes, I think it's nice too.

it is a feature request, and your "while do" is not like a "do while", and it can't be used or better misused to build a "do while".

Reason is the nature of the "do" needing some construct in front.

Ah, right you are.
But would it be much different than:

while {true} do {
   //code
  if (condition) exitWith {}
};

or:

while {
//code

condition
} do {};