Forum Discussion
Order in which filter works
- Anonymous1 year ago
Hi DouweMeer
The logical operator && follows the short-circuit evaluation rule. If multiple conditions are connected by && (e.g., A&&B&&C&&D), once any condition returns FALSE, the subsequent conditions will no longer be evaluated, and FALSE will be returned immediately.You can verify the short-circuit property using the following formula:
Test = IF ( TRUE() && FALSE() && DIVIDE(1, 0), // Without short-circuiting, DIVIDE(1,0) would result in an error (division by zero error). "True", "False" )Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi DouweMeer
The logical operator && follows the short-circuit evaluation rule. If multiple conditions are connected by && (e.g., A&&B&&C&&D), once any condition returns FALSE, the subsequent conditions will no longer be evaluated, and FALSE will be returned immediately.
You can verify the short-circuit property using the following formula:
Test =
IF (
TRUE() && FALSE() && DIVIDE(1, 0),
// Without short-circuiting, DIVIDE(1,0) would result in an error (division by zero error).
"True",
"False"
)
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I like your thought, but did you try to remove the false to test whether it returns in an error?
It doesn't :). Probably due to the divide expression on alternative result.
Which doesn't mean your assumption is false, just your argumentation is incorrect.
Versus
Thanks.