quick server pages
   
Manual page for setting(variables)

#set

#set variable = numeric
#set variable = "text"
#set variable = $function

Assigns a value to a QUISP variable. The value may be a constant or a variable, and may be a numeric, alphanumeric/text, or function result. Alphanumeric/text literals should be enclosed in double quotes, although the parser is lenient and quoting is only really required when the constant contains whitespace. Whitespace must follow the #set, the variable, and the equals sign (=). Multiple alphanumeric variables or constants may be used on the right hand side, resulting in concatenation, however they must be separated by whitespace.

Examples:

 #set COUNT = 0
 #set LABEL = "My favorite martian"
 #set LABEL = @A @B        
 #set LABEL = @A ", " @B        
 #set TODAY = $todaysdate()
 #set TOTAL = $arith(@X+@Y+@Z)     


#setifnotgiven

#setifnotgiven variable = value

Similar to #set except that it takes action only if variable is empty ("") or has never been assigned a value. Useful in assigning a default value to optional passed variables.
Example: #setifnotgiven CUTOFF = 0.5


See also

#sqlblankrow.


quick server pages    
Copyright Steve Grubb    


Markup created by unroff 1.0,    March 19, 2004.