Select string from a list/array based on retrieved integer

Yes, but it is not obvious. What is your use case?

See here: Identifying RAM type on Windows

( tuple string item ( 24 ) of "Unknown, Other, Unknown, DRAM, EDRAM, VRAM, SRAM, RAM, ROM, FLASH, EEPROM, FEPROM, EPROM, CDRAM, 3DRAM, SDRAM, SGRAM, RDRAM, DDR, DDR2, DDR2 FB-DIMM, Reserved, Reserved, Reserved, DDR3, FBD2, DDR4, LPDDR, LPDDR2, LPDDR3, LPDDR4" )

I have many examples using the SMBIOS inspector & the WMI inspector that do this.

Examples: