title: How to assign a value based on a condition in Ocaml?
body: <p>I would like to express something like the following: </p>
  
  <pre><code>if b then
    let value = ... in
  else
    let value = .... in
  let double = value * 2
  </code></pre>
  
  <p>But it seems that Ocaml does not allow this syntax. If I don't want to repeat the <code>let double = value * 2</code> part, do I have to define <code>value</code> as a reference?</p>
  
  <p>Thank you very much!</p>