August 2010
Intermediate to advanced
288 pages
13h 21m
English
The Variable block, in the Data group on the Complete Palette (Figure 11-4), stores and retrieves variable values. The Variable block should appear in your program as shown in Figure 11-5.

Figure 11-4. The Variable block on the Complete Palette

Figure 11-5. The Variable block
When working with a Variable block, you need to tell NXT-G which variable to use and whether to read to or write from the variable. To do so, use the Configuration Panel (Figure 11-6) to select the variable from the list, and then set the Action item to either ...