Saturday March 24, 2018

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

Get SteelArrow!     
Return to Tag List
The DEFSET tag is used to set a variable to a value, if a value has not already been associated with it. The tag is the short form of:
   <SAIF COND=!IsDefined(var)>
      <SASET NAME=var VALUE=value>

If the variable already has a value (not an empty string), the variable will remain unchanged.
NAMEvariable name
VALUEvariable or expression

The following is an example of DEFSET;
<!--- Will create 'var' with the below value --->
<SADEFSET NAME=var VALUE="var will now be this string">

<SASET NAME=var2 VALUE="var2 value">

<!--- Won't do anything since var2 has a value --->
<SADEFSET NAME=var2 VALUE="var2 will not be this string">

Copyright © 1998-2004 Tomahawk Technologies Inc.
Privacy Policy