Syntax question
lardom
Posts: 1,659
. I'm trying to write a statement that copies a value to the next 'empty' element in a variable array. I'm still working through the logic but I had a question about syntax
repeat until Y(index) == 0 Y(index)++ Y(index) := X
Comments
-Phil
Yes. Y[index] in the while clause is true as long as the element being tested is non-zero. As soon as a zero element is found, the loop exits without executing again and incrementing the index.
-Phil