Forums / Setup & design / How to apply an operator depending on some condition

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

How to apply an operator depending on some condition

Author Message

Zoltan Szabo

Sunday 29 August 2004 10:26:49 pm

I have in my template code the following part:

cond(some_long_condition,some_long_variable,some_long_variable,some_long_variable|ezurl)

So I would like to use |ezurl depending on some condition.
Is it possible to do it some more simple way?
I mean something like this:

some_long_variable|cond(....ezurl)