View Single Post
Old 12-31-2022, 07:16 AM   #16
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
Hey @chaley I have another question for you.

I follow multiple shows where one of the main characters will have the same of a similar name that is shortened to the same tag on AO3. For example "Lex" being used as a short for Alexandra, Alex, Alexander, Lexa etc. combine this that some shows are crossing over into others it makes for a mess with the tags, so I want to clean this up by building in another if statement that the show needs to contain both show A and Show B. So far I got as far as this:

Code:
program:
output = '';

	for item in $#pair:
		if $#show == "show A, Show B" then
			if item ==  "ABC/XYZ" then ni = "AAA / BBB"
			elif item ==  "DEF/UVW" then ni = "CCC / DDD"
		else ni = item
		fi;
		output = output & ',' & ni
	rof;
	output = list_sort(list_remove_duplicates(output, ','), 0, ',')
But the I get the following Error message:
EXCEPTION: Formatter: if statement: expected 'fi', found 'rof' near Unknown on line 13

So I understand there needs to be another 'fi' as to end the if statement, but I've tried adding it in number of places but it just does not change the fact I keep getting errors. I was hoping you could give me a hint in the right direction.
ackomb is offline   Reply With Quote