precondition help
Options
![Niraj Chourasia](https://us.v-cdn.net/6037124/user_avatars/1901481.jpg)
Niraj Chourasia
Member ✭
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.
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
-
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] -
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] -
So then you would want to use OR instead of AND
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback