Code:
if select(ids, 'url') then
if
'(Archive of Our Own|Fanfiction.net)' in $publisher
&& '(Completed|Abandoned|Oneshot|Incomplete)' in status
then "metadata.png"
elif
!select(ids, 'ao3')
&& $publisher == 'Archive of Our Own'
&& status == 'In-Progress'
then 'metadata.png'
elif
!select(ids, 'ffnet')
&& $publisher == 'FanFiction.net'
&& status == 'In-Progress'
then "metadata.png"
fi
fi
Would it be able to combine the two bottom elifs into one? Regex (ao3|ffnet) is one way, but is there a way to keep the id/publisher pair separate from each other?
EDIT: Another question:
Did I somehow accidentally turn it into last_non_empty?