Array data

Options

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

  • Ray Deck
    Ray Deck Trusted Xano Expert ✭✭✭
    Options

    . 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.

  • Nathalie D
    Options

    Thanks Ray. This notation "source.0" helped me to get on the right track.