Dynamically Writting Vars to a Webpage
<p>I have the following function below and it works great when all 3 vars are not null, however, how can it be modified such that when either variable (tel, fax, cell) are null, that the line containing the null variable does not get written?</p>

<pre><code>Current scenario:
T. 123-4567-8910
F. 987-654-3210
C. 
-------------------------------
Desired scenario:
T. 123-4567-8910
F. 987-654-3210
-------------------------------
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;script type="text/javascript"&gt;
function test() {

var tel = "123-4567-8910"
var fax = "987-654-3210"
var cell = ""

var html =
        '&lt;div&gt;T. '+ tel +'&lt;/div&gt;\n' +
        '&lt;div&gt;F. '+ fax +'&lt;/div&gt;\n' +
        '&lt;div&gt;C. '+ cell +'&lt;/div&gt;'

document.write(html)

}
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;a href="javascript:test()"&gt;test&lt;/a&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
