Elixir: How to test multiple values in case condition?
<p>Is there a shorter way to write this:</p>

<pre><code>case testvalue do
  200 -&gt;
    true
  404 -&gt;
    true
  _ -&gt;
    false
end
</code></pre>

<p>It returns true for 200 or 404 and false for everything else. It would be nice to write it with an OR condition but this leads to an error:</p>

<pre><code>case testvalue do
  200 || 400 -&gt;
    true
  _ -&gt;
    false
end
</code></pre>