I need to loop through an array and find the lowest integer from a range of integers.
Options
![Xano Support Chat](https://us.v-cdn.net/6037124/uploads/userpics/FKYXLB95T7IC/nMGWYAJV7MBEL.jpeg)
Xano Support Chat
Administrator
ADMIN
I'm unsure how to perform something.
I receive an array of data from an external API which contains prices. I have no control/fidelity of sort on the array.
I need to identify the lowest price (integer) in the array and display this to my front end.
I'm really unsure how to achieve this, could you help?
Tagged:
Best Answer
-
This can be accomplished with a single filter: array_min. By applying this filter to your array, it will return the minimum value of the array.
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