From Wikipedia, the free encyclopedia
Logic function: logical conjunction
Form: If Parameter1 = x And Parameter2 = y Then a Else b
Syntax: {{Ifand|test1=Parameter1|val1=x|test2=Parameter2|val2=y|then=a|else=b}}
[edit] Examples
Code |
Returns |
{{Ifand|test1=foo|val1=foo|test2=bar|val2=bar}}
|
true |
Code |
Returns |
{{Ifand|test1=foo|val1=foo|test2=bar|val2=foo}}
|
false |
Code |
Returns |
{{Ifand|test1=foo|val1=bar|test2=bar|val2=bar}}
|
false |
Code |
Returns |
{{Ifand|test1=foo|val1=foo|test2=bar|val2=bar|then=foobar!|else=no foobar today}}
|
foobar! |
Code |
Returns |
{{Ifand|test1=foo|val1=nope|test2=bar|val2=nope|then=foobar!|else=no foobar today}}
|
no foobar today |