Discussions

 View Only

Exact form conditional showing of image

  • 1.  Exact form conditional showing of image

    Posted 02-12-2020 14:12
    I have a single part of my page that won't work.
    Code is:

    ~=if(f['90'] != '')
    {'<p><strong>&nbsp;</strong></p>
    <p><strong>&nbsp;</strong></p>
    <p><strong></strong></p>
    <img src=' + f['92'] + ' height=200 style=transform:rotate(90deg); onclick=rotateBy90Deg(this)>
    <p><strong>&nbsp;</strong></p>
    <p><strong>&nbsp;</strong></p>';}
    else {'<p><strong>No Tag On Pole</strong></p>';}~

    The image shows fine if I only use the img src tag, but i can't get it to show conditionally.  Any ideas?
    Img tag by itself would be:
    <img src=~92~ height="200" style="transform:rotate(90deg);" onclick="rotateBy90Deg(this)">