View Single Post
Old 09-26-2010, 12:47 PM   #99
Sweetpea
Grand Sorcerer
Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.
 
Sweetpea's Avatar
 
Posts: 9,707
Karma: 32763414
Join Date: Dec 2008
Location: Krewerd
Device: Pocketbook Inkpad 4 Color; Samsung Galaxy Tab S6
Quote:
Originally Posted by chaley View Post
Looking more carefully at this, I contend that both are wrong. The first is wrong because it didn't use series formatting and displayed the float. I fixed this.

The second is wrong because *nothing* should be displayed when the book has no series. The '00' shouldn't be there. I will fix this as well.

Note: if you really want the 00, you use another field and the ifempty function. Create a composite field containing {series_index:0>2s}, lets call it AA. In the original you would use
{Author} - {Series} {AA:ifempty(00)} - {Title}
Nah, I don't want that emtpy index, and I figured that was a bug as well and that you'd fix it when you'd fix the main issue: the lack of formatting

Edit:

is there a list of "commands" (for lack of a better word) you can use inside the field? (such as the "ifempty" and "0>2s")?

Last edited by Sweetpea; 09-26-2010 at 12:53 PM.
Sweetpea is offline   Reply With Quote