Difference between revisions of "Template:Booleq"
Jump to navigation
Jump to search
DESiegel60 (talk | contribs) (New page: {{booleq/eq2|{{{1}}}=1|@={{{2}}}}}<noinclude> eq </noinclude>) |
DESiegel60 (talk | contribs) (doc) |
||
| Line 1: | Line 1: | ||
{{booleq/eq2|{{{1}}}=1|@={{{2}}}}}<noinclude> | {{booleq/eq2|{{{1}}}=1|@={{{2}}}}}<noinclude> | ||
[[Category:Boolean templates|eq]] | [[Category:Boolean templates|eq]] | ||
| + | {{booleq/doc}} | ||
</noinclude> | </noinclude> | ||
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