Var

Tag Type C++ code (built in to libRPM/VarCache.cc)
Attributes [name=]string Required. Gives the name of the variable which will later be referenced in the var=... attributes of any of the Form element tags.
pubName=string Optional. Use if the external databases know this variable by a different name.
value=string Optional. Assigns a value directly to the variable.
delim=char If this is specified, then when multiple values are assigned to the var (as with the {Menu multiple ...} tag), they will be separated by this character.
loc=string and
method=methname
Optional. Specifies a location and access method for obtaining the value of the variable. The method= can be omitted with the file name or location ends in .rpm, .par, or .sh. See also information on built-in rpm access methods in the RPM user's manual.
NOTE: If both loc= and value= are omitted, the last loc= will be used.
Contained Tags None.
Related Tags Var tags are ignored unless they appear in the Private or Public sections of an HForm document.
Examples

This line declares a variable named "speed" with an initial value set to 55.
  {Var name="speed" value="55"}

This line fetches a variable called "speed_limit" from the file "data.par". Setting method="par" is actually not needed, because it will be assumed from the fact that the filename ends in ".par"
  {Var name="speed_limit" loc="data.par" method="par"}

This next example is the same as the above, but prevents the user from entering non-numeric characters. WARNING: Not yet implemented (but it does no harm to create hforms with these attributes already in them.)
  {Var name="speed" value="55" type="integer"}

The next line puts the additional restriction on the variable limiting it to the range 0-75. WARNING: Not yet implemented (but it does no harm to create hforms with these attributes already in them.)
  {Var name="speed" 
       value="55" 
       type="integer" 
       min="0" max="75"}
(Note how arbitrary white space within RPM tags is ignored.)