Difference between revisions of "Template:If"
From SimsWiki
EllaCharm3d (Talk | contribs) m (6 revisions) |
Revision as of 11:21, 4 October 2010
Usage
{{if |test=VARIABLE_OR_PARAMETER_TO_TEST |then=code if 'test' is not empty |else=code if 'test' is empty }}
Parameter else is optional. So you may also do:
{{if |test=VARIABLE_OR_PARAMETER_TO_TEST |then=code if 'test' is not empty }}