Condition: Multiple logical operators in a single field condition

  • monikassl
    Asked on November 17, 2018 at 4:26 PM

    Hello everyone, can anyone know that how to put multiple conditions in jot form?

    I want Multiple conditions like this:  if (a=1  OR  a=2 & b=1 OR b=2)

    Please let me know if anyone know about this.Thanks in Advance

  • Kevin Support Team Lead
    Replied on November 17, 2018 at 10:33 PM

    While setting up the conditions click on the plus icon to add a new statement, you may add as many statements as needed: 

    1542511962screenshot 01 Screenshot 10


  • monikassl
    Replied on November 18, 2018 at 10:19 AM

    I know about this, but please see my statement: ***if (a=1  OR  a=2 & b=1 OR b=2)***, in this statement i am attaching 2 OR conditions with 1 AND condition, but in jotform condition panel this is not any option to attaching 2 conditions, so please see this again and let me know if this is possible with jot form 

  • arthurprc
    Replied on November 18, 2018 at 11:09 AM

    Hi there,

    It would not be possible to add multiple logical operators in the same condition, though you could achieve the same result by creating multiple conditions with different logical operators.

    Consider the example below as "a = 1 == address is filled" OR (ANY) "a = 2 == teste is filled"

    1542557256condor Screenshot 10

    And the second example below as "a = 1 == address is filled" AND (ALL) "a = 2 == teste is filled"

    1542557304condand Screenshot 21

    Note that the ANY is similar to the OR operator and ALL stands for AND. 

    With ANY condition, if one rule is matched it perform the DO action, with ALL condition, it needs to perform both (or multiple) rules to DO the action.

    However, it would not be possible to add OR with AND operators in the same condition.

    Let us know if you need further assistance, we'll be happy to help!

  • monikassl
    Replied on November 18, 2018 at 4:16 PM

    Oh, but i was thinking about to use multiple logical operators in the same condition, so now no problem, your reply remind me some new logic and it is working now. Thank you for this