Forum Discussion

DavidWright's avatar
DavidWright
Qrew Member
6 years ago

Exact form conditional showing of image

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)">
No RepliesBe the first to reply