Javascript string concatenation with if
<p>How would I do the following, in order to pull the conditional value?</p>

<pre><code>formatter: function() {return ' ' +
    '&lt;b&gt;Time: &lt;/b&gt;' + Highcharts.dateFormat('%b %d, %H:%M ', this.x) + '&lt;br /&gt;' +
    '&lt;b&gt;Volume: &lt;/b&gt;' + if (this.y) {'Successful';} else { 'Failed';} + '&lt;br /&gt;'
},},
</code></pre>
