i would like to call an image if the drop-down attribute is marked as "yes" from drop-down - if its "No" then i dont want to call an image. i am using the below code but this seems to pull the image for yes and no.
<div>
<?php //echo $_product->getAttributeText('discount');
if($_product->getAttributeText('discount')){ ?>
<img src='<?php echo $this->getViewFileUrl('images/footer-logo.png'); ?>' alt="Demo">
<?php } ?>
</div>
Thank you