Share » Forums » Developer » Strange switch syntax problem

Strange switch syntax problem

Strange switch syntax problem

Wednesday 18 August 2004 6:44:03 am - 1 reply

Author Message

Ole Morten Halvorsen

Wednesday 18 August 2004 7:38:07 am

Hmm...Do you remember to close all those lets? I can easly see that as a problem. Why this work in the first case and not the second I don't know, but I would really recommend defining all your variables with let first then use set to change them.

Example:

{let first_name=false()
       profile_object=fetch( ... )
{switch ...}
{case match=24}
    {set first_name=$profile...}
{/case}
{case /}
{/switch}

{* more code * }

{/let}

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

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

36 542 Users on board!

Forums menu