The steps are as follows:
The text of the test4.txt file is read with the File1.ReadFrom procedure.
The File1.GotText event block then converts that text from it's CSV table format to a pairs (nested) list with the list from csv table block and stores that in the CatalanToOtherLanguages global variable.
The lookup in pairs blocks show how to select a specific Catalan word and have either it's Spanish or French translation returned.
A search for 'Catalan5' returns a two-item list containing the Spanish and French translations.
The select list item block is used to return either the Spanish or French translation.
The Spanish translation is item 1 in that list.
The French Translation is item 2 in that list.
For applications where an item in a value list is not a number or text, you can build the pairs list manually using the last of these three methods:
---
sf