The below script loops through files in two lists to check which of them match. If they do, the 'tagger' function is used to manipulate the files. I created this code for a GUI in which to test its functionality I chose four files (two for lf and two for lg). The probem is that when the condition is evaluated to true, the 'tagger' script only runs for the first of the matching two files, instead of all four matching files. Was wondering if I was missing something?