Array data
Options
Nathalie D
Member ✭
Hi,
I'd like to get the values (2,6,7,3, etc) out from the data[] section of a variable that looks like this, and can't figure out a way.
Please help. Thank you.
[{index: 0,data: [[2,6,7,3,1,1,1,1,1,1,... +93 more]]}]
Tagged:
Answers
-
. I think you want to create a new variable with the value of (assuming the input is a variable called source) var:source.0.data.0 to unwrap the array that wraps everything, the object containing data, and the double-array within data.
This kind of data puzzle can be fun! They’re a common topic on our office hours at state change.
-
Thanks Ray. This notation "source.0" helped me to get on the right track.
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