quisp: quisp variables

quick server pages
| Manual page for QUISP(variables)

## Variables

QUISP uses variables. QUISP variables can be set by incoming CGI user variables (in the URL or submitted via a POST operation). They can also be set within a script using the `#set` directive. When a variable's contents are being displayed or referenced the variable name is written beginning with an at-sign (@).``

Variable names must begin with a letter and may contain letters, digits, and underscore.`` (Variable names originating from an sql join result will contain an embedded period.) Names are case-sensitive. Maximum length of a variable name is 38 characters.`` Variables are delimited by whitespace and any punctuation character except underscore and period (so something like `@a.@b` will not work because the period is taken to be part of the variable name).``

Variables may hold numbers, alphanumerics, or lists, but are always stored in alphanumeric form, with a maximum content length is 250 characters.`` All variables are global in scope across page templates within a process.``

An at-sign (`@`) is used at the beginning of a variable name when its contents are to be displayed or referenced.`` Otherwise, the at-sign should not be used.`` Examples:

             Hello, my name is @NAME
             #set NAME = "Harvey Smith"
    	 #if @mode = 2

An attempt to display or reference the contents of a variable that has never been assigned a value will result in cancellation of the evaluation (the variable name will be displayed transparently) and no error condition will be raised.``

## Special variables

The following special variables exist:

@CGIPROG . . . the full path name of the QUISP cgi executable. More info

@HTMLURL . . . the URL of a directory where static HTML, images, etc. reside More info

@HTMLPATH . . . the file system path name equivalent of HTMLURL More info

@PROJDIR . . . the file system path name of your project directory More info

@QUISP_VERSION . . . the version of QUISP that you are running
quick server pages
Copyright Steve Grubb

Markup created by unroff 1.0, `` `` April 13, 2004.