Forums / Setup & design / Not Equal Operator?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Not Equal Operator?

Author Message

Douglas Johnson

Wednesday 23 July 2003 2:45:36 pm

What is the Not Equal operator for a

{case match not equal "home"} statement.

I want a case statement where:

{case match <> "home"}

Help please...

Kjerand Pedersen

Wednesday 23 July 2003 2:57:23 pm

Try this:

{switch match=$your_variable}
{case match="home"}
...do this if it matches "home"
{/case}
{case}
...do this if it doesn't match
{/case}
{/switch}

Hope this helps!