Q:

If statement for translatable product attribute values

I'm using this kind of statements on other places in the webshop (product detail page) but I want to use this one is on the category page:
<?php if ($_product->getAttributeText('cp_doos_specificaties') == "Ja" || "Yes"): ?>

But for some reason this isn't working... When I remove the || Yes it's working, but I need the Yes also because the webshop is also in English and otherwise the code won't work.
Hope someone can help me with this.

A:

Yo can use like below statement in your case,
This condition is allow both value Ja And Yes
<?php if ($_product->getAttributeText('cp_doos_specificaties') == "Ja" || $_product->getAttributeText('cp_doos_specificaties') == "Yes"): ?>

