This is a demonstration of how you can emulate associative arrays in Scratch. Click the green flag and watch the explanation, or skip that and see inside directly. The code is in the sprite "Code Examples".
Read more about associative arrays here: https://en.wikipedia.org/wiki/Associative_array Thanks to @gregatku for making the project "2D & 3D Lists", which inspired me to do this. Check out that project here: https://scratch.mit.edu/projects/484580676/