Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Multiple Conditions in Smartforms

Former Member
0 Likes
4,171

If the following conditions were inserted in Smartforms on the same conditions tab (with an implied AND between the first two lines) like such:

COND1 = A

COND2 = B

OR

COND3 = C

Which of these would it act like

( COND1 = A and COND2 = B ) or COND3 = C

COND1 = A and ( COND2 = B or COND3 = C )

1 ACCEPTED SOLUTION
Read only

Former Member
2,246

Hi,

That is depend on inserting the OR condition, if you insert the OR after the first COND1 COND2 then it may act as ( COND1 = A and COND2 = B ) or COND3 = C

9 REPLIES 9
Read only

Former Member
0 Likes
2,246

Hi,

In the Condition tab,

In the Field Name give the COND1 and in the Comparision value give the value A, then same for the COND2 after this Press <b>Inser OR</b> button (2nd button from the right) then write the COND3 and the Comparision value..

Hope this will work

Regards

Sudheer

Read only

0 Likes
2,246

I understand how to insert the conditions.

My question is regarding the actions of entering these conditions. Would it interpret the AND first or the OR first?

Read only

0 Likes
2,246

Hi Marie,

It depends on how you use them within the brackets.Any thing within one bracket can be treated as one condition.

Read only

0 Likes
2,246

There are no brackets in Smartforms conditions tab

You enter them laterally like so

COND1

COND2

COND3

with the option of adding "OR" in between. If no ORs are added there is an implied "AND".

Read only

Former Member
2,247

Hi,

That is depend on inserting the OR condition, if you insert the OR after the first COND1 COND2 then it may act as ( COND1 = A and COND2 = B ) or COND3 = C

Read only

0 Likes
2,246

So if the conditions are entered as:

COND1

OR

COND2

COND3

then the OR will get executed first as in

(COND1 or COND2) and COND3

Is that correct?

Read only

0 Likes
2,246

Yes perfect.

Read only

0 Likes
2,246

Ok...so based on your answer the following logic would be impossible to enter in a conditions tab in Smartforms

(A and B) or (C and D)

If I entered

CONDA

CONDB

OR

CONDC

CONDD

then it would act like (((CONDA and CONDB) or CONDC) and CONDD)

Read only

0 Likes
2,246

Yes.