title: What's the nvelocity/C# equivalent of "if x in array"?
body: <p>Hacking on a Nvelocity C#/.NET view template (.cs file), I'm really missing the Python keyword "in" (as in, "foo in list"). What is the built-in for checking list/array membership?</p>
  
  <p>This is what my Python brain wants to do:</p>
  
  <pre><code>#set ( $ignore = ['a','b','c'] )
  &lt;ul&gt;
  #foreach ( $f in $blah )
    #if ( $f not in $ignore )
      &lt;li&gt; $f &lt;/li&gt;
    #end
  #end
  &lt;/ul&gt;
  </code></pre>
  
  <p>But I am not sure what the right syntax is, if there is indeed any. I had a quick look at the <a href="http://velocity.apache.org/engine/releases/velocity-1.5/user-guide.html" rel="nofollow noreferrer">Velocity Template Guide</a> but didn't spot anything useful.</p>