IF/ELSE without a loop
-
When there is an image, this displays just fine:
<img class="img-background" src="[content type='text-blocks' name='map-banner' field image='background_image' return='url']" alt="">
However, if I write the following, and there is an image or not, the following doesn’t return anything:
[if content type='text-blocks' name='map-banner' field image='background_image'] <img class="img-background" src="[content type='text-blocks' name='map-banner' field image='background_image' return='url']" alt=""> [/if]
Does the IF condition need to be inside a [loop] for it to work?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘IF/ELSE without a loop’ is closed to new replies.