How to "skip" an entry if a variable is missing
Options
![wtzr](https://us.v-cdn.net/6037124/user_avatars/2760684.jpg)
wtzr
Member ✭
Hi Guys,
I'm calling an API, and loop through it to get all items in a database. This works fine, however if one variable is missing in one of the items i'm looping through, the loop breaks.
How can I make sure the loop continues, if one item has a missing value?
Thanks!
I'm calling an API, and loop through it to get all items in a database. This works fine, however if one variable is missing in one of the items i'm looping through, the loop breaks.
How can I make sure the loop continues, if one item has a missing value?
Thanks!
Comments
-
Try using the GET filter so you can define a default value at the path if the value is missing - https://docs.xano.com/working-with-data/dot-notation#get-filter
-
Thanks! This was exactly what I was looking for.
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