Loop over multiple arrays simultaneously: Difference between revisions
Loop over multiple arrays simultaneously (view source)
Revision as of 10:10, 22 March 2023
, 1 year ago→{{header|M2000 Interpreter}}
No edit summary |
|||
Line 2,864:
</syntaxhighlight>
=={{header|M2000 Interpreter}}==
While End While can used for iterator type objects. We can use comma to use more than one iterator, or we can use folded While End While. When we use comma the iteration end when any of the iterators before iterate get the false state (no other iteration allowed). So for this example in While End while it is like we use i1 and i2 and i3, but with a comma (this only apply to While structure - and While { } structure - without End While<sup>Superscript text
<syntaxhighlight lang="m2000 interpreter">module Loop_over_multiple_arrays_simultaneously {
|