Perl List Compare

So, I have two lists, created using the same Parent list, that I want to compare, constructed based on two sets of grid questions. The goal is to compare the two lists for any similar items (the parent list contains items that people may currently have and items that they may have in the future).

My thinking was using unverified perl to compare the list values. Something like...

ADD(CurrentCrit)
ADD(FutureCrit)
Begin Unverified Perl
if (LISTHASPARENTMEMBER("CurrentCrit",140) && LISTHASPARENTMEMBER("FutureCrit",1))
{
REMOVE("CurrentCrit",140);
}
End Unverified

There's 147 lines in the full comparison, but can't seem to get it to function correctly. I've tried with and without parentheses around each of the Listhasparentmember statements, but nothing seems to work. Any ideas or guidance? Thanks in advance.

4 replies