Dynamic Image Transformation (Ignoring empty records)
Options
![Joseph](https://us.v-cdn.net/6037124/user_avatars/3832125.jpg)
Joseph
Member ✭
I'm trying to resize my 'users' profile_images when it gets pulled to my front end and am currently able to do so through using a loop and following the documentation/tutorial accordingly.
https://docs.xano.com/xano-features/images
The problem comes when some of my users don't have a profile_image, the loop then breaks since it's unable to find the profile_image of that particular user.
I tried doing an 'if' statement to ignore the empty profile_images but to no avail. Does anyone have any suggestions?[image.png]
Thanks!
https://docs.xano.com/xano-features/images
The problem comes when some of my users don't have a profile_image, the loop then breaks since it's unable to find the profile_image of that particular user.
I tried doing an 'if' statement to ignore the empty profile_images but to no avail. Does anyone have any suggestions?[image.png]
Thanks!
Comments
-
Kinda figured it out, my 'if' conditional statement should have been targeting 'profile_image' itself and not the 'profile_image.url'
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