Friday April 19, 2024

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


Get SteelArrow!     
  <SASET/>    
 
 
 
Return to Tag List
 
The SET tag is used to set a variable to a specified value. The value can come from a variable or expression.
 
Attributes:
NAMEvariable name
VALUEvariable or expression

 
The following is an example of SET;
 
<!--- Will create 'var' with the below value --->
<SASET NAME=var VALUE="var is now this">

<!--- Changing the variable value --->
<SASET NAME=var VALUE=var & " a concat string">

<!--- Outputs: var is now this a concat string --->
<SAOUTPUT VALUE=var>


<!--- Other examples of manipulating a variable --->
<SASET NAME=iVar VALUE=30>
<SASET VALUE=iVar++> <!--- iVar = iVar + 1 --->
<SASET VALUE=iVar--> <!--- iVar = iVar - 1 --->
<SASET VALUE=iVar*~3> <!--- iVar = iVar * 3 --->
<SASET VALUE=iVar/~5> <!--- iVar = iVar / 5 --->

<SASET NAME=total VALUE=(iVar.gt.3) ? 5 : 10>
<!--- The above expands to; if iVar > 3 total=5 else total=10 --->






Copyright © 1998-2004 Tomahawk Technologies Inc.
Privacy Policy