title: Coffee Script: if .. is .. then
body: <p>I'm writing a rock paper scissor game with Coffee Script and the code is not compiling as I'd expect.</p>
  
  <p>CoffeeScript</p>
  
  <pre><code>if choice is opponent_choice then alert "Tie!"
  </code></pre>
  
  <p>Compiles to</p>
  
  <pre><code>if (choice === opponent_choice) alert("Tie!");
  </code></pre>
  
  <p>But I was expecting</p>
  
  <pre><code>if (choice === opponent_choice) {
  alert("Tie!");
  }
  </code></pre>
  
  <p>What do I need to change for this to compile in the way I expected?</p>