![]() htp on-line reference : IF, ELSE, /IF |
|
syntax<IF [NOT] conditional> block #1 <ELSE> block #2 </IF>
synopsisIF, NOT, ELSE, and /IF are the building blocks for conditional processing. The basic form is shown above."Conditional" is either a "compare" or "is defined" operation. A compare operator is a test of the value of a macro against a literal string:
<IF name="Jim"> and a defined operator is a test of a macro's existance:
<IF name> If the NOT tag is present in the IF markup, the evaluation of the conditional is reversed. The ELSE operator is optional. The ELSE block is always included in the output if the IF operation evaluated false. Otherwise, it is ignored. A conditional block must be closed with the /IF tag.
|
|
htp on-line reference / http://htp.sourceforge.net/ref/
Authors: Jim Nelson, Jochen Hoenicke, Michael Möller. Maintainers: Jochen Hoenicke, Michael Möller.
Copyright © 1995-96 Jim Nelson. last updated Mon May 27, 2002 |