I'm currently reading in a lookup file and then running line by line through a much larger text file and then acting on that line if it's found in the lookup file.
The lookup file is 115 lines long, has a lookup and replacement value separated by a comma and is loaded into an array called "Replacement". I then read in a variable "outputstring" from a line in the larger file and run a loop that's basically
Code: Select all
repeat>findcolour
Let>tmp=Replacement_%findcolour%
Separate>tmp,COMMA,replacebits
if>outputstring=replacebits_1
let>namecolour=replacebits_2
let>foundcolour=yes
let>findcolour=999
else
let>findcolour=findcolour+1
endif
Until>findcolour>%Replacement_COUNT%