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.

3
  • $\begingroup$ One more thing to add: test[x__Equal] := 1 will work, too (and probably be faster) $\endgroup$ Commented Dec 21, 2017 at 6:14
  • $\begingroup$ @b3m2a1 - they have different behaviour, however. If the user enters x==y==z, I don't want this to be pattern matched. $\endgroup$ Commented Dec 21, 2017 at 7:01
  • $\begingroup$ Ahh. Okay. I assumed you were only working with a==b type expressions. $\endgroup$ Commented Dec 21, 2017 at 7:02