Template:If
From SimsWiki
Revision as of 05:11, 1 July 2011 by EllaCharm3d (Talk | contribs)
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 }}