Noah, based on your approach, I can do some of what I need with:
(number of ((lines of file “file_a.txt”, lines of file “file_b.txt”) whose (item 0 of it is item 1 of it)) as integer) = (number of lines of file “file_a.txt” as integer)
then I don’t have to know how many items are in file_a.
The only drawback there is that they have to be on separate lines, and I’d rather be able to pull the list of desired elements out of a variable, like a client setting. I suspect sets may be useful for this, but am unsure as to how I would go about using them
Well, if you can give us more details about what the data looks like and where we are pulling it from we can certainly help with the parsing. Are you saying that the data represented by “file_a.txt” is actually a bunch of client settings?
Q: (IF (number of elements of item 0 of it < number of elements of item 1 of it) THEN (it whose (multiplicity of it = 1) of unique values of elements of (item 0 of it;item 1 of it)) else (nothings)) of (intersection of (item 0 of it; item 1 of it), item 0 of it) of (set of (substrings separated by " " of concatenation " " of (lines of file"c:\temp\file_a.txt")), set of (lines of file “c:\temp\file_b.txt”))
A: bob
A: scotty
File A can have entries on a single line (delimited with spaces) or on multiple lines. File B is currently limited to single words per line, but could be modified to adjust for varying input formats.
-Jim
P.S. Forgot to add I put in the name of a ‘redshirt’ character in the file A list when I tested for entries on multiple lines.