Difference between revisions of "Template:Booleq"
Jump to navigation
Jump to search
DESiegel60 (talk | contribs) (doc) |
DESiegel60 (talk | contribs) |
||
Line 1: | Line 1: | ||
{{booleq/eq2|{{{1}}}=1|@={{{2}}}}}<noinclude> | {{booleq/eq2|{{{1}}}=1|@={{{2}}}}}<noinclude> | ||
+ | |||
+ | {{booleq/doc}} | ||
+ | |||
[[Category:Boolean templates|eq]] | [[Category:Boolean templates|eq]] | ||
− | |||
</noinclude> | </noinclude> |
Latest revision as of 02:26, 22 October 2008
{{booleq}}
uses {{booleq/eq2}}
.
It determines whether parameters 1 and 2 are equal, where equality gives 1, and inequality gives the empty string.
Examples
{{booleq|a|a}}
should give {{booleq/eq2|a=1|@=a}}
which gives 1
{{booleq|a|b}}
should give {{booleq/eq2|a=1|@=b}}
which gives
{{booleq|a|2}}
gives
{{booleq|2|2}}
gives 1
{{qif|test={{booleq|foo|foo}}|then=true|else=false}}
gives true
{{qif|test={{booleq|foo|bar}}|then=true|else=false}}
gives false