title: Elm - Executing multiple lines per if branch
body: <p>For example, in one branch, I want see how many times a number is divisible by 1000, then pass the starting number less that amount into the function recursively. This is what I have written:</p>
  
  
  
  <pre class="lang-elm prettyprint-override"><code>if num // 1000 &gt; 0 then
      repeat (num // 1000) (String.fromChar 'M')
      convertToRom (num % 1000)
  </code></pre>
  
  <p>However, I get the following error in the REPL when testing:</p>
  
  <pre class="lang-elm prettyprint-override"><code>&gt; getRomNums 3500
  -- TYPE MISMATCH ----------------------------------------- .\.\RomanNumerals.elm
  
  Function `repeat` is expecting 2 arguments, but was given 4.
  
  34|             repeat (num // 1000) (String.fromChar 'M')
  35|&gt;            convertToRom (num % 1000)
  
  Maybe you forgot some parentheses? Or a comma?
  </code></pre>
  
  <p>How can I write multiple lines of code for a single if branch?</p>
  
  <p>Unrelated side note: The format system makes the double slash a comment, but in Elm the double slash is integer division. Not sure how to fix that.</p>