Difference between revisions of "Template:If"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
{{{else{{{test|}}}|{{{test{{{test|}}}|{{{then|}}}}}}}}} | {{{else{{{test|}}}|{{{test{{{test|}}}|{{{then|}}}}}}}}} | ||
+ | <noinclude> | ||
+ | == Usage: == | ||
+ | If X evaluates to a non-empty string, the thenClause is output, otherwise, the elseClause is generate. | ||
+ | |||
+ | <pre>{{If|test=X|then=thenClause|else=elseClause}}</pre> | ||
+ | </noinclude> |
Revision as of 14:31, 1 October 2008
Usage:
If X evaluates to a non-empty string, the thenClause is output, otherwise, the elseClause is generate.
{{If|test=X|then=thenClause|else=elseClause}}