View Single Post
Old 12-22-2013, 03:24 PM   #38
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by HarryT View Post
Yes, sorting series in order is the specific purpose that I use it for .



I don't think that's right. I believe it should be:

{title}{series:|| (}{series_index:||)}

The syntax is as follows: if the item, such as "series", is empty, the text following the FIRST vertical bar is output. If the item is not empty, the text following the SECOND vertical bar is output. Thus:

{series:|| (}

Means:
Output the series name.
If the series name is blank, output nothing (there's nothing between the 1st and 2nd |)
If the series name is not blank, output " (".

Hope that helps,
Um, no, the vertical bars separate prefix from suffix, and both are only used if series exists.

You use the function ifempty() to return a value if "field" is empty.
eschwartz is offline   Reply With Quote