Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Definitely something to think about. I can eliminate the use of not by having "not equal to" as a comparison operand. I plan on making my conditional logic parser/evaluator public on GitHub soon so this could be something to add in to make it a bit more general purpose. Commented Oct 28, 2015 at 17:16
  • 2
    "if (foo or bar) then action" is not equivalent to if (foo) then action if (bar) then action. If both foo and bar are true the your example calls action twice. Commented Oct 28, 2015 at 21:14
  • @Dunk you're absolutely right – I just edited the question to correct that. Commented Oct 28, 2015 at 21:18