Forums / Setup & design / Not Equal Operator?

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!