I need help making an if statement with many logical operators easier
<p>I've tried searching for it, but I don't really now how to formulate the question correctly...</p>

<p>I have an <code>if-statement</code> with many logical operators. How do I do this easier ?</p>

<pre><code>If (n == 1 ||n == 2 ||n == 3  ||n == 5 ||n == 9 ||n == 8 ||n == 7 ||n == 551 ||n == 17 ||n == 81 || etc etc)
{ //Stuff
}
</code></pre>

<p>I'm thinking in pseudo-code I want something like this:</p>

<pre><code>List list = {1, 3, 5, 7, 9, 12, 14, 16, 18, 19, 21, 23, 25, 27, 30, 32, 34, or 36 }

if n is in list, then {}
</code></pre>

<p>As you understand, I'm a beginner and I have problems formulating what I need.</p>
