Add syntax into if statement in PHP : <p>I want to add these code into if statement in php. Can it be done?</p>

<pre><code>&lt;script&gt;
$(function () {
    "use strict";
    $('#first_container').vegas({
        color: '&lt;?php echo $wa[custom_79];?&gt;',
        delay: &lt;?php echo $wa[custom_80];?&gt;,
        transitionDuration: &lt;?php echo $wa[custom_133];?&gt;,
        timer: false,
        transition: null,
        slides: [
            &lt;?php if ($wa[custom_82] != "" &amp;&amp; $wa[custom_83] == "1") { $wa[custom_82] = str_replace(' ', '%20', $wa[custom_82]);?&gt;
                {src: '&lt;?php echo $wa[custom_82];?&gt;'},
            &lt;?php }
            if ($wa[custom_84] != "" &amp;&amp; $wa[custom_85] == "1") { $wa[custom_84] = str_replace(' ', '%20', $wa[custom_84]);?&gt;
                {src: '&lt;?php echo $wa[custom_84];?&gt;'},
            &lt;?php }
            if ($wa[custom_86] != "" &amp;&amp; $wa[custom_87] == "1") { $wa[custom_87] = str_replace(' ', '%20', $wa[custom_87]);?&gt;
                {src: '&lt;?php echo $wa[custom_86];?&gt;'},
            &lt;?php }
            if ($wa[custom_88] != "" &amp;&amp; $wa[custom_89] == "1") { $wa[custom_89] = str_replace(' ', '%20', $wa[custom_89]);?&gt;
                {src: '&lt;?php echo $wa[custom_88];?&gt;'},
            &lt;?php }
            if ($wa[custom_90] != "" &amp;&amp; $wa[custom_91] == "1") { $wa[custom_91] = str_replace(' ', '%20', $wa[custom_91]);?&gt;
                {src: '&lt;?php echo $wa[custom_90]?&gt;'},
            &lt;?php } 
            if ($wa[custom_92] != "" &amp;&amp; $wa[custom_93] == "1") { $wa[custom_93] = str_replace(' ', '%20', $wa[custom_93]);?&gt;
                {src: '&lt;?php echo $wa[custom_92]?&gt;'},
            &lt;?php }
            if ($wa[custom_94] != "" &amp;&amp; $wa[custom_95] == "1") { $wa[custom_95] = str_replace(' ', '%20', $wa[custom_95]);?&gt;
                {src: '&lt;?php echo $wa[custom_94];?&gt;'},
            &lt;?php } 
            ?&gt;
            &lt;? if ($wa[custom_94] != "" &amp;&amp; $wa[custom_95] == "1") { $wa[custom_95] = str_replace(' ', '%20', $wa[custom_95]);?&gt;
                {src:'images/1-Hov-Lean-1800px-X600px.jpg'},
            &lt;? } ?&gt;
            &lt;? if ($wa[custom_96] != "" &amp;&amp; $wa[custom_95] == "1") { $wa[custom_95] = str_replace(' ', '%20', $wa[custom_95]);?&gt;
                {src:'images/1-Angkor-1800px-X-600px.jpg'},
            &lt;? } ?&gt;
            &lt;? if ($wa[custom_98] != "" &amp;&amp; $wa[custom_95] == "1") { $wa[custom_97] = str_replace(' ', '%20', $wa[custom_97]);?&gt;
                {src:'images/Home-Pages-Angkor-PC.png'},
            &lt;? } ?&gt;
            {src:'images/Home-Pages-Peakbond.png'}
        ],
&lt;/script&gt;

&lt;?php if ($wa[custom_132] == "1") { ?&gt;
    &lt;a href="#" class="previous hidden-xs" style="visibility: visible;"&gt;&lt;/a&gt;
    &lt;a href="#" class="next hidden-xs" style="visibility: visible;"&gt;&lt;/a&gt;
&lt;?php } ?&gt;
</code></pre>

<p>It should be like this</p>

<pre><code>&lt;?php
if($_COOKIE["size"]&gt;800)
  echo "I want to put those code inside here";
else
  echo "Not decide yet";
?&gt;
</code></pre>

<p>Can this be done because i want to display different image banner in the slideshow based on the resolution of the device monitor. Thanks</p>
