precondition help

Options
Hi there,

I am trying to implement the precondition for params pass in get api. So scenario is i have 2 params email and phone, i just want to trigger the precondition when both params are null or empty, i tried but could'nt succeed, plz guide me to do this.

Thanks in advance.

Comments

  • Michael Udinski
    Michael Udinski Administrator

    ADMIN

    Options
    Hey  - Preconditions let you set multiple where statements with AND, OR, and AND/OR groups... But you can also set multiple preconditions as well... Preconditions enforce that something must be true so for example if you want it to trigger when something is null, your Where statement would be
    WHERE
    something DOES NOT EQUAL null

    [CleanShot 2022-01-10 at 14.12.05.png]
  • Niraj Chourasia
    Options
    Hi ,
    I tried like below = and != both but when only both params having value then its getting pass and my require result should be any of one having value should pass

    [Screenshot from 2022-01-11 11-35-18.png]
  • Michael Udinski
    Michael Udinski Administrator

    ADMIN

    Options
    So then you would want to use OR instead of AND