Forums / Setup & design / Switch : Counting chars to execute code... / Comment16842
Marco Zinn
Sunday 31 October 2004 7:11:48 am
Hi,
if you are talking about a string and want to switch based on the number of characters, you should have a look at the count-function.
Pseudo-code
{section show=your_string_var$|count()|gt(16)} more than 16 chars {section-else} not more than 16 chars {/section}
Marco http://www.hyperroad-design.com