title: VBScript - using IF statements in a mail script?
body: <p>I really need some quick tips here.</p>
  
  <p>I've got this <a href="http://en.wikipedia.org/wiki/VBScript" rel="nofollow noreferrer">VBScript</a> script which sends an e-mail. And I want to do several checks to see if an attribute is true and if it is, write an additional line in the mail.</p>
  
  <p>How can I do this? This is part of the script:</p>
  
  <pre><code>    obMessage.HTMLBody = ""_
          &amp; "&lt;MENU&gt;"_
          &amp; "&lt;LI type = square&gt;This is a line&lt;/i&gt;."_
  </code></pre>
  
  <p>I want something which looks like this:</p>
  
  <pre><code>    obMessage.HTMLBody = ""_
          &amp; "&lt;MENU&gt;"_
      If statement1 = true Then
          &amp; "&lt;LI type = square&gt;This is an additional line&lt;/i&gt;."_
      end if
  </code></pre>
  
  <p>Preferrably, could some select statements be made? I don't really mind what the code looks like, I just want it to work as soon as possible :)</p>