title: How to add a if else statement between $html in TCPDF?
body: <p><code>$html = '// html code'</code> is used to add html code in TCPDF. How can I add a if else statement between the quote? I added a variable by adding <code>' . $code . '</code></p>
  
  <pre><code>$html = '&lt;td&gt;
              if (' . get_prop($this-&gt;iform, 'temp') . ' == 0) {
                  &lt;input type="checkbox" name="temp" value="temp" readonly="true" /&gt;
              } else {
                  &lt;input type="checkbox" name="temp" value="temp" readonly="true" checked="checked" /&gt;
              }
           &lt;/td&gt;'
  </code></pre>