You are here

Enabling Auto-Indexing

26 July, 2019 - 09:47
Available under Creative Commons-ShareAlike 4.0 International License. Download for free at http://cnx.org/contents/5b6e61df-b830-48cb-9764-94696cb47c80@1.3

By default, while loops are auto-indexed disabled. In order for while loops to process and generate arrays, the loop tunnel must be enabled to auto-indexed arrays.

media/image42.png
Figure 5.41 Disabled Auto-Indexing 

To enable auto-indexing, right click on the loop tunnel and select Enable Indexing from the pop-up menu.

media/image43.png
Figure 5.42 Enabling Auto-Indexing  

In this example the while loop appropriately generates a 1,000 element numeric array with random numbers.

media/image44.png
Figure 5.43 Auto-Indexing Enabled