PHP: Can I put an IF statement in a <li> tag? : <p>Ok so i'm trying to make a checklist for a school website and I want to make an ordered list followed by the check box and the description. Here is my code for it but I get an error message saying "Unexpected IF statement." </p>

<pre><code>echo "&lt;ol type='1'&gt;
       &lt;li&gt;" . if ($r['check1'] == 1){
           echo "&lt;input type='checkbox' name='check1' value='1' checked&gt;submitted my JSCC
                  admissions application for the upcoming term to JSCC Admissions and Records
                  Services.
                  \n&lt;br&gt;";
       } else {
           echo "&lt;input type='checkbox' name='check1' value='1'&gt;submitted my JSCC admissions
                  application for the upcoming term to JSCC Admissions and Records
                  Services.
                  \n&lt;br&gt;";} . "&lt;/li&gt;

       &lt;/ol&gt;\n";
</code></pre>
