UtterAccess HomeUtterAccess Wiki

Welcome Guest ( Log In | Register )

Discussion
> Template:Equal    


Template Documentation: Equal

CALLABLE KEYWORDS:
Equal
equal
Equals
equals


PURPOSE:
Use in conjunction with the If template to handle conditional markup. The Equal template returns a value on matches, or null, which can then be analyzed from the If template and directed accordingly.

PARAMETERS:
{{{1}}}: First comparison parameter
{{{2}}}: Second comparison parameter


USAGE:

CODE RESULT
{{Equal|p|p}} 1
{{Equal|p|q}} <null>
{{Equal|2|2}} 1
{{Equal|1|2}} <null>
{{Equal|p|}} <null>
{{Equal||p}} <null>
{{Equal||}} 1
{{Equal|p}} <null>
{{Equal|}} <null>

Example: Is this in Template Namespace? {{If|Test={{Equal|Template|{{NAMESPACE}}}}|Then=Yes|Else=No}}

SEE ALSO:
Template:If


For help creating a documentation page, see Manual:Template Documentation



Discussion
Thank you for your support!
This page has been accessed 2,861 times.  This page was last modified 19:48, 13 January 2012 by Jack Leach.   Disclaimers