Friday April 19, 2024

       
      SteelArrow Basics
      SteelArrow Tags
  SteelArrow Functions
  SteelArrow Objects
  Advanced Topics
  WAS Overview
   
   
       
      Overview
  Code Samples
  Site Search
   
   
   


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:
CONDexpression or variable to evaluate
CONDITIONsame as COND
NOCASEflag 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>





Copyright © 1998-2004 Tomahawk Technologies Inc.
Privacy Policy