Variables in repeaters – Brocade Virtual ADX Graphical User Interface Guide (Supporting ADX v03.1.00) User Manual
Page 271
Brocade Virtual ADX Graphical User Interface Guide
259
53-1003242-01
Overview
B
Variables in Repeaters
When a variable is referenced within a repeater, it is used in an iterative, looping manner if there is
a reasonable way to do so. This behavior makes it possible for repeaters to loop through a list in a
scalable manner. The following rules determine how variables are handled:
•
Count attribute: This attribute determines how many times the repeater iterates. The value
must be the name of an existing variable of one of these types:
•
stringList: The count is the number of items in the string list.
•
ipAddressList: The count is the number of items in the IP address list.
•
integer: The count is the integer value.
•
integerNonZero: The count is the integer value.
•
Variable attributes inside the repeater: These attributes refer to variables that provide data
values for each iteration. Certain types of variables will provide a different value each time the
repeater iterates:
•
stringList: With each iteration, the next item in the list is used.
•
ipAddressList: With each iteration, the next item in the list is used.
•
string: If the variable has "autoIncrement" set to "true", with each iteration, the string value
has an incrementing number appended as a suffix.
•
stringNoWhiteSpace: If the variable has "autoIncrement" set to "true", with each iteration,
the string value has an incrementing number appended as a suffix.
•
integer: If the variable has "autoIncrement" set to "true", with each iteration, the numeric
value is incremented by one.
•
integerNonZero: If the variable has "autoIncrement" set to "true", with each iteration, the
numeric value is incremented by one.
•
ipAddress: If the variable has "autoIncrement" set to "true", with each iteration, the last
number in the IP address is incremented by one. If the number exceeds the end of the
subnet number range, no more values are returned.
•
In all other cases, the variable returns its regular value again and again through each
iteration.
•
If any variables are used again in another repeater, their values are reset to the same
initial starting value again for each new repeater.