This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Setup & design » {switch} {case} will not Work!!!?!?!
expandshrink

{switch} {case} will not Work!!!?!?!

{switch} {case} will not Work!!!?!?!

Wednesday 23 July 2003 11:22:18 pm - 4 replies

{let ......}
{section}
{switch name=navcheck match=$node.name}
{case match!="Metal-Fab Inc."}
................ statements .....
{/case}
{/switch}
{/section}
{/let}

Wednesday 23 July 2003 11:27:42 pm

Douglas, {switch} {case} should work. Could you post some specifics as to the problem you are encountering?

Alex

Wednesday 23 July 2003 11:32:38 pm

Thanks Alex.

I think it has something to do with either the "!=" or the "match=$node.name". When I have:

{switch name=navcheck match="99"}

{case match!="22"}

It works! But not with the variable $node.name???? Any ideas.

Wednesday 23 July 2003 11:42:53 pm

OK, the problem is with the "!=". Is this a valid operator? If not, what do I use for not equal? I have tried ne and <> but niether work???

Thursday 24 July 2003 12:00:23 am

To use the 'ne' operator, to this:

{section show=$node.name|ne("Home"blunk.gif Emoticon}
...statements...
{/section}

Or use Switch as in my reply to your other post.

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from