Forums / Developer / Stupic question but so important to begin...

"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".

Stupic question but so important to begin...

Author Message

pierre oOo

Monday 29 October 2007 9:46:45 am

hi,

what's the template language for the negation of " eq " ???
I tried many things like " !eq" , "not eq ", etc...
I'm getting mad ! ... please help me...

I can get throught it with an "else", but It's not a good solution...

here's the condition I want to invert :

{if eq($node.object.current_language, $translation.item.language_code)}

Many Thanks.

[::ink:.]

André R.

Monday 29 October 2007 10:14:29 am

{if ne($node.object.current_language, $translation.item.language_code)}

Alternativly (but more work):

{if eq($node.object.current_language, $translation.item.language_code)|not()}

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom