![]() quick server pages |
#set
#set variable = numeric
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.
See also#sqlblankrow. |
![]() quick server pages Copyright Steve Grubb |