Template:If: Difference between revisions
DavidJCobb (talk | contribs) (Created.) |
(No difference)
|
Latest revision as of 20:47, 19 August 2009
Allows for if-defined statements in templates -- that is, you can test if a particular variable is empty or not. It is the functional equivalent of the ParserFunction #if.
Usage
{{if|CONDITION|NOT EMPTY|EMPTY}}
outputs NOT EMPTY
{{if||NOT EMPTY|EMPTY}}
outputs EMPTY