View Single Post
Old 10-05-2022, 08:30 AM   #936
trxplz0
Junior Member
trxplz0 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2022
Device: kindle oasis
Quote:
Originally Posted by chaley View Post
I don't understand what your sequence of OR's is supposed to do. Series is either set or not set, but it appears in several of the OR'ed expressions. Title is always set but the OR's seem to account for it being empty. What selects which expression?

Going from your examples, this template produces the given answer
Code:
program:
	if $series then
		template('{series[0]}/{series}/{series_index:0>3s|| - } {title}/{pubdate:|| - }{title}')
	else
		template('{title[0]}/{title}/{pubdate:|| - }{title}')
	fi

I was using just to explain what I need.

Thank you for the help, it's working.

Have a nice day!
trxplz0 is offline   Reply With Quote