Template talk:Ifor

From Wikipedia, the free encyclopedia

Logic function: logical disjunction

Form: If Parameter1 = x Or Parameter2 = y Then a Else b

Syntax: {{Ifor|test1=Parameter1|val1=x|test2=Parameter2|val2=y|then=a|else=b}}

[edit] Examples

Code Returns

{{Ifor|test1=foo|val1=foo|test2=bar|val2=bar}}
true
Code Returns

{{Ifor|test1=foo|val1=foo|test2=bar|val2=foo}}
true
Code Returns

{{Ifor|test1=foo|val1=bar|test2=bar|val2=bar}}
true
Code Returns

{{Ifor|test1=foo|val1=bar|test2=bar|val2=foo}}
false
Code Returns

{{Ifor|test1=foo|val1=foo|test2=bar|val2=bar|then=foobar!|else=no foobar today}}
foobar!
Code Returns

{{Ifor|test1=foo|val1=nope|test2=bar|val2=nope|then=foobar!|else=no foobar today}}
no foobar today