View Single Post
Old 01-01-2023, 11:35 AM   #24
ackomb
Zealot
ackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura about
 
Posts: 106
Karma: 4486
Join Date: Mar 2020
Location: Netherlands
Device: i-pad
Quote:
Originally Posted by chaley View Post
...
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, ',')
ackomb is offline   Reply With Quote