LoopsA body of code can be executed a number of times using a ‘while’ loop. The ‘while’ loop evaluates a condition, and while the condition is ‘true’, it executes the enclosed block of code For example:
$count = 0;
while( $count < 10 ) {
log.info( "In loop, count = " . $count );
$count = $count + 1;
}
The ' In ZXTM, TrafficScript contains a number of helper functions to manipulate complex data, such as HTTP requests or long strings. Consequently, it is rarely necessary to use loops in TrafficScript.
Owen Garrett
[Zeus Dev Team] 01 July 2005
|
Recent Articles
Other Resources
|


