$next list item

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "This function retrieves the next item in a list. Lists have internal position counters to keep track of where you are.")
 
Line 1: Line 1:
 
This function retrieves the next item in a list. Lists have internal position counters to keep track of where you are.
 
This function retrieves the next item in a list. Lists have internal position counters to keep track of where you are.
 +
 +
This function will return the list item at the list's current position, and then
 +
increment the list's position by one.
 +
This function is the easiest way to loop through a list sequentially (from position 0
 +
to the end of the list).
 +
Given a list containing the numbers 1-25, we will loop through the list using the
 +
$next list item function:
 +
 +
[[File:nextlistitem.jpg]]

Revision as of 23:30, 9 October 2012

This function retrieves the next item in a list. Lists have internal position counters to keep track of where you are.

This function will return the list item at the list's current position, and then increment the list's position by one. This function is the easiest way to loop through a list sequentially (from position 0 to the end of the list). Given a list containing the numbers 1-25, we will loop through the list using the $next list item function:

File:Nextlistitem.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox