Answer the question
In order to leave comments, you need to log in
What is wrong with this condition?
Good afternoon, I display the property of the page, it is necessary that if it is empty, it does not display anything.
But under this condition, it only displays the value . What is the error. Thank you"img")
$APPLICATION->ShowProperty(
<?if($APPLICATION->ShowProperty("img") > 0):?>
<img class="img-responsive" src="<?=SITE_TEMPLATE_PATH?>/images/<?$APPLICATION->ShowProperty("img")?>.jpg"/>
<?else:?>
<?endif;?>
Answer the question
In order to leave comments, you need to log in
Write to the property along with the html markup and output via ShowProperty (but remember that this is a deferred function and it does not return the value of the property. It just displays it on the screen).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question