
|
|
Get SteelArrow!
|
 |
 |
 |
<SAWHILE>
 |
 |
 |
 |
 |
| |
| |
| |
| Return to Tag List |
| |
|
The WHILE tag aids in program flow. The tag is similar to LOOP
in that it allows a script to loop over a block of code until a condition evaluates
to FALSE.
|
| |
Attributes:
| COND | expression or variable to evaluate |
| CONDITION | same as COND |
| NOCASE | flag to denote case insensitive compare |
|
|
| |
|
The following is an example of WHILE;
|
| |
<!--- Create a LIST object containing 12,34,56,78 --->
<SASET NAME=list VALUE=MakeList( ":", "12:34:56:78" )>
<!--- Output list contents --->
<SAWHILE COND=list.MoreData()>
<SAOUTPUT VALUE=list><BR>
<SANEXT NAME=list>
</SAWHILE>
|
|
|
|