Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8901

If-then Statement in Text/XML Transformation Not Working

$
0
0
I'm using a repeater that shows people's information, including their image with Text/XML transformation. Some people do not have photos, so I want to hide the image tag for them. I tried this:{% if (Image != @@) { @@img class=\@img-responsive\@ src=\@@ + Image + @\@/@@ } else { } %} Where Image is a file upload field. The problem is the image tag is always appearing - even for those whose value for Image is blank.Does anyone know what I'm missing?

Viewing all articles
Browse latest Browse all 8901

Trending Articles