There’s no magic; as I understand it, you just have to use an I7 selector that’s clunkier than if you’re searching for one row. Something like:
[code]Table of products
index 1 index 2 result
3 4 12
6 7 42
1 1 1
5 3 15
3 6 18
2 3 6
To look up (first argument - number) and (second argument - number) in the table of products:
let result found be false;
repeat with N running from 1 to the number of rows in the table of products: [for some reason when I try to do this as a repeat through the table I get a Glulxe fatal error; maybe you can’t access chosen rows outside a broken repeat loop through a table]
choose row N in the Table of products;
if the index 1 entry is the first argument and the index 2 entry is the second argument:
now result found is true;
break; [having broken the repeat loop the chosen row row is the one we found]
if result found is true:
say the result entry;
otherwise:
say “No result found.”
When play begins:
look up 3 and 6 in the Table of Products;
say paragraph break;
look up 5 and 3 in the Table of Products;
say paragraph break;
look up 3 and 3 in the Table of Products;
say paragraph break.[/code]
As I recall, earlier when I complained about having to repeat through the table to do this, zarf said that anything else we might try would amount to repeating through the table anyway.