title: if statement inside a variable
body: <p>I am building a conditional navigation menu that has 3 levels (the 3rd level added today by business, no worries its not like I launch next week. Oh wait I do:)). I have a javascript var that contains the html for my first conditional level. I am now trying to insert another level inside of the first. </p>
  
  <pre><code>var myVar = '&lt;ul class="linksUnit"&gt;';
  var myVar += '&lt;li&gt;Link 1&lt;/li&gt;';
  var myVar += if (myVar2 != false) {document.write("Link 2")};
  var myVar += '&lt;/ul&gt;';
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p>Thanks</p>