Answered
I would like to implement the following field condition. Is this possible?
if ( fieldA = no AND (fieldB = no OR fieldC = no) )
0
Comments
Please sign in to leave a comment.
Here's a pretty good guide (and community comments) for conditional logic / branching:
https://help.gocanvas.com/hc/en-us/articles/231963587-How-to-add-conditional-branching
Sara's answer in the comments indicates that it goes in order until it hits the first "out".
I just tested several different ways and your example works if you "back into it" kind of like this:
Field C = no
And
Field A = no
Or
Field B = no
And
Field A = no
...But being able to use parenthesis would be way easier. There's an enhancement request already to add this for calculations:
https://help.gocanvas.com/hc/en-us/community/posts/360001898633-Allow-Parenthesis-and-Exponents-and-Implement-Order-Of-Operations-For-Calculation-Fields
...but it should also be available with field / screen conditions...
Maybe consider making an enhancement request for that?
Hi Beheerder,
Nathan's suggestion should definitely work as a solution to what you're proposing. If it gets more complex, circle back with us here and we can revisit with another possible solution.
Thanks!
Siobhan