How Do You Read a Multi-Column List in Snap!

you don’t need that, just use item (patrick v ) of (csv)

don’t worry; with some practice that will go away :slight_smile:

item () of (item () of @list)

The reason why CONTAINS and INDEX OF don’t work is because those blocks don’t check nested lists.

You’re expecting the two dimensions of a table to be usable interchangeably in code (as you could in APL, btw). But we store a table as a list of rows, so there’s no straightforward way to get, e.g., column 2 of the table. You could do it with
untitled script pic (10)
which has worked in Snap! since forever, but these days it’s faster to take
untitled script pic (11)
especially for big tables.

It’s important to remember that untitled script pic (12) is the entire row, a list, not just the first column of that row. If you want to find the row matching a particular name, you say
untitled script pic (13)

Oh, Thanks

Oh, Ok