Template talk:Ifnot

From Wikipedia, the free encyclopedia

Logic function: logical negation

Form: If Not Parameter = x Then a Else b

Syntax: {{Ifnot|test=Parameter|val=x|then=a|else=b}}

[edit] Examples

Code Returns

{{Ifnot|test=foo|val=foo}}
false
Code Returns

{{Ifnot|test=foo|val=bar}}
true
Code Returns

{{Ifnot|test=foo|val=foo|then=test wasn't foo|else=test was foo}}
test was foo
Code Returns

{{Ifnot|test=bar|val=foo|then=test wasn't foo|else=test was foo}}
test wasn't foo