Quote:
Originally Posted by chaley
...
|
Is there a way to continue to the next item on the tag list when the first statement is true without actually adding a separate action to the action chain?
I have a number of books that have a large number of crossovers and pairings that I want to change in one action rather then setting up multiple actions for each pairing only slowing things down.
I know 'NEXT' won't work but it is to who what I'd like to do.
Code:
program:
show1 = list_count_matching($#show, '^(Show A|Show B)$', ',') == 2;
show2 = list_count_matching($#show, '^(Show A|Show B)$', ',') == 2;
output = '';
for item in $#pair:
if show1 then
if item == "ABC/XYZ" then ni = "AAA / BBB"
else ni = item
fi
else ni = item
fi;
NEXT
if show2 then
if item == "KLM/NOP" then ni = "EEE/ FFF"
else ni = item
fi
else ni = item
fi;
output = output & ',' & ni
rof;
output = list_sort(list_remove_duplicates(output, ','), 0, ',')