How to select a single item from within a list or array?

Schofield

New Member
Hello,

In AA, how can I select a single item from within a list? I have tried list(2), list[2] - neither work.

I have a chunk of data, e.g. "Name: Brian, Sex: Male, Age: 32", which I have split into a list using a comma delimiter, I now want to send each item to a variable. I can go through the list in a loop and increment a counter to find the position of each item and send the data that way, but it seems a little inefficient.

Is there a way to do this in AA?

Thanks
 

VJR

Well-Known Member
Hello Schofield,

You enquired about List or Array.
I don't think I saw a way to access individual elements from a List without a loop.
But there is a way to access it from an Array.
Refer the attached screenshot.
The Message Box command will show XYZ as that is the item on the 3rd row and 1st column.


Hope it helps.
VJ
 

Attachments

  • Array AA.jpg
    Array AA.jpg
    78.4 KB · Views: 53
Top