24,527 ARTICLES
ON THIS WIKI

Template:AND

Template documentation (for the above template, sometimes hidden or invisible)

This template functions as a binary AND operation. It will only return a value if both the first and second parameters are given.


Syntax[edit]

{{AND|<condition 1>|<condition 2>|<true output>|<false output>}}

Examples[edit]

  • {{AND|foo|bar}} gives true
  • {{AND|foo|}} gives (nothing)
  • {{AND||}} gives (nothing)
  • {{AND|foo|bar|yup|nope}} gives yup
  • {{AND|foo||yup|nope}} gives nope

See also[edit]

Visit Template:AND/doc to change this text! (How does this work?)

Done making changes? Refresh this text! (Why?)