I have this template for display of two columns in Kobo subtitles and Generate Covers:
Code:
{#taglike:'sublist(list_sort($, 0, ','), 0,1,',')'} | {#anothercolumn}
Is there a way to make it so that if a specific value is present in #taglike, it is prioritized and appears instead of the first sorted one?
I see in the documentation about indexes, but that seems to be about what order it is in rather than a specific value.
e.g. if
'abc, bar, foo' appears it currently shows
'abc.'
I want to prioritize
'bar' so that it appears instead even though it is not first.
But
'bar' may not always be the second item in the list, e.g.
'aaa, aaaaaaaah, ahhhhhhhhh!!!, bar' or
'bar, random screaming'
I am thinking maybe sublists won't work for this, but something like list_re.
Context: The template is for displaying fanfic information. I want it to show 'Crossovers' if that value appears in #fanficcat.