View Single Post
Old 12-29-2012, 05:10 AM   #18
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,557
Karma: 93980341
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by DuckieTigger View Post
Question about your filter - what do the || do ? Does that mean it is only adding the space and the - if series and the # exist?
Yes. The syntax:

{series:|| }{series_index:0>2s|| - }{title}

Means:

1. Output the series name.
2. If the series name is empty, output nothing (there's nothing after the first "|"), otherwise output a space (the space after the second "|").
3. Output the number within the series, padding it to 2 characters with a leading zero, if necessary (ie a series index of "3" will be displayed as "03").
4. If the series number is blank, output nothing, otherwise output " - ".
5. Output the original title.
HarryT is offline   Reply With Quote