Switch : Counting chars to execute code...

Switch : Counting chars to execute code...

Monday 25 October 2004 4:55:43 am - 3 replies

Author Message

Jorge estévez

Tuesday 26 October 2004 8:52:37 pm

Please help me with this

Thanks

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Jorge estévez

Sunday 31 October 2004 3:59:02 am

Please help

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

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

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.