title: jslinq with dynamic where condition and or operator
body: <p>I have used jslinq (i.e <a href="http://jslinq.codeplex.com/" rel="nofollow">http://jslinq.codeplex.com/</a>) to filter my json data.</p>
  
  <p>The following code is used to get the values statically</p>
  
  <pre><code>var whereExample1 = JSLINQ(myList).Where(function(item){
      return (item.FirstName == "Chris") || (item.FirstName == "Test")  
  });
  </code></pre>
  
  <p><strong>But I have a problem while making it dynamic</strong></p>
  
  <pre><code>var names=["Chris","Test"];
   var whereExample1 = JSLINQ(myList).Where(function(item){ return 
    for(i=0;i&lt;=names.length;i++)
    {
           if(i == names.length)
           {
                item.FirstName == names[i];
           }
           else
           {
              item.FirstName == names[i]+'||';    
           }
    }    
  });
  </code></pre>
  
  <p>But I couldn't able to make the desired output.Please help me</p>