I'm unsure how that list was constructed to begin with, however, I would probably opt to put it into an array, with the "key" being the first column, and the "value" being the second column.
Code: Select all
repeat for each line tLine in theList
put word 1 of tLine into theKey
put word 2 of tLine into theArray[theKey]
end repeat
Then, if you wanted to find out what score corresponded to 1115 you would simply do:
One other thing to add, if you made that list (as a lookup table) manually, then instead of creating the list, then creating the array, I would just manually create the array like so:
Code: Select all
put 1115 into tArray[1110]
put 1120 into tArray[1111]
etc. (with your numbers of course)