
Text::UberText::Modules::Loop - UberText Loop Commands

[uber.loop count:(10) -> ] This text will repeat 10 times. [<- uber.loop ] [uber.loop list:(randy,kyle,nick) variable:(bf) -> ] My current boyfriend is [uber.var name:(bf)] [<- uber.loop ]

The Loop module controls simple looping directives that are identical to a for loop for integers, or a foreach loop for strings.

Initiates a loop. The count value refers to the number of loop iterations. The start option indicates that the incrementor should start at an integer other than 1. The variable option saves the internal value of the iterator to a variable that can be displayed or further modified.
Initiates a loop, one cycle for each item in the list. Items in the list are seperated by commas. If the variable option is set, the variable will be passed the value of the current item in the list.

Chris Josephes <cpj1@visi.com>


Copyright 2002, Chris Josephes. All rights reserved. This module is free software. It may be used, redistributed, and/or modified under the same terms as Perl itself. ~