• I was born on August 10
  • Bio c:
  • [Show More]
  Loading editor
  • I had a look on your contributions page (not sure why lol) and noticed this thread about using AND in parser functions. Well, I guess I just like parser functions. So despite the fact that the problem on that thread was solved in another way, here is my answer: Yes, there is definitely an AND operator.

    #if, #ifeq and #switch are comparing strings, while #expr and #ifexpr are evaluating math and logical expressions. In logical expressions, 1 is true and 0 is false. So you can write an expression like this:

    {{#ifexpr: {{#ifeq:{{{1}}} |Dragon |1 |0}} AND
               {{#ifeq:{{{2}}} |Fire   |1 |0}}

    This will result in "yes" only if parameter 1 is equal to "Dragon" and parameter 2 is equal to "Fire".

    Hope that helps, or maybe you already figured that out!

      Loading editor
    • Nice! The method I'm using at the moment is as efficient as this one, but it's never bad to know alternative solutions! Will probably use it in the future, thanks ^^

        Loading editor
    • A FANDOM user
        Loading editor
  • Hi, welcome to Community Central and thanks for your edit!

    If you need help, feel free to leave me a message. You may also want to visit the forums. You can also check the staff blog to keep up-to-date with the latest news and events around Fandom.

    Happy editing!

      Loading editor
    • A FANDOM user
        Loading editor
Give Kudos to this message
You've given this message Kudos!
See who gave Kudos to this message
Community content is available under CC-BY-SA unless otherwise noted.