<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Help with if then statement</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Help-with-if-then-statement-80408</link>
        <description></description>
        <pubDate>Tue, 14 Jul 2026 09:06:13 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Help-with-if-then-statement-80408" rel="self" type="application/rss+xml" />

                <item>
          <title>Help with if then statement</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2238256#post2238256</link>
          <description><![CDATA[<p>It is working. I didnt refresh the page. Thank YOu.</p>]]></description>
          <pubDate>Wed, 10 Feb 2016 11:03:46 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2238256#post2238256</guid>
        </item>
                <item>
          <title>Help with if then statement</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2238255#post2238255</link>
          <description><![CDATA[<p>I tested your code and it is showing both images.</p>]]></description>
          <pubDate>Wed, 10 Feb 2016 10:51:17 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2238255#post2238255</guid>
        </item>
                <item>
          <title>Help with if then statement</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2238254#post2238254</link>
          <description><![CDATA[<p>Saw this and thought i could help. Here is what I usual do in this case by using an if statement checking image size. So if the size is zero that indicates there is no image and goes to the next if statement:</p>
<p><span style="color:#339966;">&lt;?php if (sizeof($record['quickship_image']) &gt;= 1): ?&gt;   </span></p>
<p>&lt;?php foreach ($record['quickship_image'] as $upload): ?&gt;<br /> &lt;?php if ($upload['isImage']): ?&gt;<br /> &lt;a href="&lt;?php echo $record['link'] ?&gt;"&gt;&lt;img src="&lt;?php echo $upload['urlPath'] ?&gt;" alt="" class="img-bord" width="150" height="150" border="0" /&gt;&lt;/a&gt; &lt;?php endif ?&gt;<br /> &lt;?php break; ?&gt;<br />&lt;?php endforeach ?&gt;</p>
<p><span style="color:#339966;">&lt;?php elseif (sizeof($record['main_image']) &gt;= 1): ?&gt; </span></p>
<p>&lt;?php foreach ($record['main_image'] as $upload): ?&gt;<br />&lt;?php if ($upload['isImage']): ?&gt;<br />&lt;a href="&lt;?php echo $record['link'] ?&gt;"&gt;&lt;img src="&lt;?php echo $upload['urlPath'] ?&gt;" alt="" class="img-bord" width="150" height="150" border="0" /&gt;&lt;/a&gt; &lt;?php endif ?&gt;<br />&lt;?php break; ?&gt;<br />&lt;?php endforeach ?&gt;</p>
<p><span style="color:#339966;">&lt;?php endif ?&gt;</span></p>
]]></description>
          <pubDate>Wed, 10 Feb 2016 10:19:14 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2238254#post2238254</guid>
        </item>
                <item>
          <title>Help with if then statement</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2238253#post2238253</link>
          <description><![CDATA[<p>I want to write if there is a quickship image load this image</p>
<p><br /> &lt;?php foreach ($record['quickship_image'] as $upload): ?&gt;<br /> &lt;?php if ($upload['isImage']): ?&gt;<br /> &lt;a href="&lt;?php echo $record['link'] ?&gt;"&gt;&lt;img src="&lt;?php echo $upload['urlPath'] ?&gt;" alt="" class="img-bord" width="150" height="150" border="0" /&gt;&lt;/a&gt; &lt;?php endif ?&gt;<br /> &lt;?php break; ?&gt;<br />&lt;?php endforeach ?&gt;</p>
<p>ELSE load this:</p>

<p>&lt;?php foreach ($record['main_image'] as $upload): ?&gt;<br />&lt;?php if ($upload['isImage']): ?&gt;<br />&lt;a href="&lt;?php echo $record['link'] ?&gt;"&gt;&lt;img src="&lt;?php echo $upload['urlPath'] ?&gt;" alt="" class="img-bord" width="150" height="150" border="0" /&gt;&lt;/a&gt; &lt;?php endif ?&gt;<br />&lt;?php break; ?&gt;<br />&lt;?php endforeach ?&gt;</p>

<p>But dont load both.</p>]]></description>
          <pubDate>Wed, 10 Feb 2016 09:50:14 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2238253#post2238253</guid>
        </item>
              </channel>
    </rss>
  