Quote:
Originally Posted by At_Libitum
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?