Forums / Setup & design / Conditionally check for existence of a select menu value

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

Conditionally check for existence of a select menu value

Author Message

Tony Stark

Monday 03 March 2008 9:32:34 am

Hi,

I need to check if a value within an attribute of a class has a value or not (single selection menu). I have tried the following, but it does not work:

{if eq(1,$node.object.data_map.myarttribute.attribute.content|count())}
has value...
{/if}

Any pointers to be able to conditionally check these values?

Thanks, Tony.