View Single Post
Old 06-29-2021, 08:59 AM   #3
halloleo
Groupie
halloleo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterhalloleo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterhalloleo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterhalloleo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterhalloleo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterhalloleo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterhalloleo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterhalloleo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterhalloleo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterhalloleo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterhalloleo can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 156
Karma: 12649
Join Date: Feb 2020
Device: iPad
Thanks for chiming in @chaley!

I tried the "if" expression path, because I do not really need the numeric comparison, a string comparison against "0" should be enough.

However I get an error. The full code for my sub title expression looks like this:

Code:
{series:'test($, strcat("<i>", $, "</i>", program: if raw_field("formatted_series_index") == "0" then "" else raw_field("formatted_series_index"),"<br>"), "")'}
{#version:'test($, strcat("<b>", $, "</b>"),"")'}
and I always see the message "Template error Formatter" complaining about not enough closing brackets - but I think the brackets are correct. What do I do wromg?
halloleo is offline   Reply With Quote