Split a string and for each

Good morning to the group, I apologize for my English but I use the translator.

I have attached a farmyard file where, using a Save button, I store the data of the 3 textboxes (Name and Surname, MaleFermale, Age) in a variable like the following example:
George-Male-26
Paul-Male-32
Ketty-Female-35
Joseph-Male-26
Mary-Female-26

I would like, via the Finds button, to display in the Label (FindsData) all the names that are 26 years old, for example:
George 26
Joseph 26
Mary 26

I've searched through the for each block and select list item list index but can't find a solution.

I ask for your help which in addition to solving my problem would help me understand how it works.

Thank you in advance for your help.
Database.aia (2.3 KB)

Something like this:

Thanks Ramòn, that's what I was looking for, now I'll study to understand the functioning.

I thank the forum for the valuable contribution, best regards.

1 Like

https://ai2.appinventor.mit.edu/reference/concepts/pholo.html

Also study the Comma Separated Values (CSV) text representation of AI2 tables (lists of lists).

Thanks Abraham, I will put your advice into practice.
Greetings and thanks to the forum.