View Single Post
Old 09-12-2013, 07:33 AM   #328
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by INCSlayer View Post
im trying to make a template that uses a custom shelf but only if the custom shelf is populated otherwise i want it to use the series index without duplicates so this:

{#truenumber:0>2s| | - }{series_index:0>2s| | - }{author}

works but in that if there is no truenumber but if there is a truenumber i get a duplicate from the series index is there any easy way to to simply have it not send series index if its sending truenumber?
Using template program mode:
Code:
{#truenumber:0>2s| | - }{series_index:0>2s:'test(field('#truenumber'), '', $)'| | - }{author}
chaley is offline   Reply With Quote