There is a productfield on the products in ecommerce. The product is a textfield (Long text). What I need to do is check if the field contains any text.
If it does it should be displayed, if not, it should display something else.
This is the template code:
<!--@If Defined(Ecom:Product:Field.ingrediensliste)-->
<!--@Ecom:Product:Field.ingrediensliste.Value-->
<!--@Else-->
<!--@LoopStart(BOMProducts)-->
<!--@Ecom:Product.Name-->,
<!--@LoopEnd(BOMProducts)-->
<!--@End If-->
The problem is that no matter if there is text in the field, both cases of the if gets written.