1) A while loop will always be executed once. No matter if the terinating condition is true or false. If you want a while loop that is not executed at all put it in a case structure. 2) A boolean case structure should always consit of a true and false case. 3) The auto indexing in the outer while loop puts a new array element in the array everytime the loop is executed. So you should consider a structure that is only putting a new value in the array when the inner loop is stopped.
Chris