quot;, users.map(u =&gt;
//   m(&quot;li&quot;, u.name)
// ))</code></pre>
<h4 id=conditionals><a href=#conditionals>Conditionals</a></h4>
<p>Use the ternary operator to conditionally set content on a view</p>
<pre><code class=language-javascript>var isError = false

m(&quot;div&quot;, isError ? &quot;An error occurred&quot; : &quot;Saved&quot;) // &lt;div&gt;Saved&lt;/div&gt;</code></pre>
<p>You cannot use JavaScript statements such as <code>if</code> or <code>for</code> within JavaScript expressions. It&#