What is the function of ||= operator/s in ruby? : <p>I recently saw a code which looks something like this</p>

<pre><code>  @a ||=
          if x
            x/2
          else
            2 * x
</code></pre>

<p>What is the use of ||=</p>
