App Inventor 2 has a look up in pairs block but you dont know how to use it? Here,there is litle example
We can use “look up in pairs” blocks like map.Map is a tag/value based method for storing information.
There is two big block.They do same.One of use select list > index in list and the other one use look up in pairs.
Its just simple example,i hope you understand how its work