find/replace for arrays?
Options
![Mitch](https://us.v-cdn.net/6037124/user_avatars/2157194.jpg)
Mitch
Member ✭
I have an array where the order matters - and I'm trying to find the best way to replace a specific entry with something else at the same index.
I figured out a way by converting to string, replacing, and then turning back to an array... but it's clunky. Wondering if there's a better way?
[image.png]
I figured out a way by converting to string, replacing, and then turning back to an array... but it's clunky. Wondering if there's a better way?
[image.png]
Comments
-
Alternatively, you could use Array: Find First Index then use an update variable function to update the array at that found index with your new value
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