Template:Booleq
Jump to navigation
Jump to search
{{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