View Single Post
Old 11-02-2013, 04:50 PM   #3
AnselmD
Zealot
AnselmD began at the beginning.
 
Posts: 105
Karma: 10
Join Date: Oct 2013
Device: none
Quote:
Originally Posted by At_Libitum View Post
I've got no idea if this is the 'official' way but I got it to work using it like so

Code:
{series_index:0>6.1f:'cmp($,0,'','',$)'|[|]: }
Thank you, yes it works and i think i understand it. 1st format and then run cmp in template program mode and do the prefix, suffix.

I just expand this to something i would like to have (adding series and title):
Code:
{series}{series_index:0>6.1f:'cmp($,0,'','',$)'|[|]: }{title}
and i would like to have a seperator, e.g. a colon, if the series_index is zero.

So i changed it to
Code:
{series}{series_index:0>6.1f:'cmp($,0,'',': ',$)'|[|]: }{title}

which does not work
TEMPLATE ERROR format: type f requires a decimal (float) value, got :-

I am mixing numbers and strings, which is not allowed. Any good idea?
AnselmD is offline   Reply With Quote