Template:If either


 * "If either (a or) (b) is true, (return first result,) (else return second result)."
 * "If either (a or) (b) is true, (return first result,) (else return second result)."

This helper template is designed to be used in other templates. It can help editors create template code that is more self documenting. A major advantage of using this template over using the construct is that if the first parameter is not empty then the second parameter is not evaluated.

The "or" in the "a or b" above is inclusive: if both a and b are true, the template will return the first result.

This template can also be used to replace the construct (i.e. "if a, then true; else if b, then true; else false").