Board Thread:Questions and Answers/@comment-27496082-20190124225257

Hello forums!

So, I'm attempting to understand how the order of operations in PTC works. According to the manual, unary operators "-" and "NOT" have the highest precedence (ignoring parentheses). But, does this actually affect the order, or are they more or less on the same level as functions? Functions are next in precedence, before things like multiplication and division, but you can't apply any of the unary operators to the function without evaluating the function first. So is the order between functions and unary operators more or less irrelevant aside from how stuff is internally handled?

Somewhat related question: I assumed that "!" is included with "NOT" in highest precedence, is this right? Official manual never mentions it in the order of operations guide.

tl;dr: Does order of operations matter between the unary operators and functions? And is "!" included in unary operators? 