Multiple Conditions
Last updated
Was this helpful?
Last updated
Was this helpful?
In the above process, the first step is reached if three conditions are met:
1) It's on public land
2) It's offensive
3) It's over 2 metres high
Now for visual purposes and to illustrate nested branches there are separate branches for all three of these. I.e. On each branch there are these three conditions:
1) Fields["PrivateLand"] == "No"
2) Fields["OFFENSIVE"] == "Yes"
3) Fields["HIGH"] == "Yes"
But it does not have to be designed like this. You could have a single branch with the name Public > Offensive > High. And the condition you would set would joint all of these. The way to do this is to place this between the conditions:
&&
This is the same as AND. So:
Fields["PrivateLand"] == "No" && Fields["OFFENSIVE"] == "Yes" && Fields["HIGH"] == "Yes"
Adding a condition like this is logical because all three pieces of data are captured in an online form and shortens the scale of the process diagram potentially.
You can also combine OR conditions like this:
Fields["PrivateLand"] == "No" || Fields["OFFENSIVE"] == "Yes"
Where two 'pipes' i.e. || mean OR. I.e. if the customer answers private land is No OR Offensive is Yes the same condition would be met.
And you can also use a NOT operator which is an exclamation mark e.g.
!Fields["OFFENSIVE"] == "Yes"
Means anything other than Yes will lead to the condition being true
The field names and the content referenced in conditions is all case sensitive. So if the field name is:
OFFENSIVE and you use Offensive it will not work.