Welcome
 Revisions
 Downloads »
 FAQ
 Tutorials »
 Reference »
  Contents
  Commands »
   Variables
   Selection
   Files
   Procedures
   Automation
   Expansions
   Cookies
   Testing
  Strings

Hitop Reference: Selection

<@IF NAME="varname" [[COMPARE="(EQ|NE|LT|GT|LE|GE|IN|NI|EQINT|NEINT|LTINT|GTINT|LEINT|GEINT)"] ( VALUE="value"] | EXPR="expression" )> ... [<@ELSEIF NAME="varname" [[COMPARE="(EQ|NE|LT|GT|LE|GE|IN|NI|EQINT|NEINT|LTINT|GTINT|LEINT|GEINT)"] ( VALUE="value"] | EXPR="expression" )> ...] [<@ELSE> ... ]</@IF>

Selectively includes a block depending on the contents of a variable (with a value), on a boolean condition (with an expression), or a variable being defined (without a value). Attempting to compare a value of an undefined variable will give an error. Compare is one of equal, not equal, less than, greater than, less than or equal, greater than or equal, (plus integer-based variants), in, not in. The default is equal.

Last updated 2001-06-16