title: Multiple posible conditions realm query
body: <p>Say I have 3 choices of sorting.</p>
  
  <p><strong>Dog class have 3 kinds</strong></p>
  
  <ul>
  <li>Bulldog </li>
  <li>Poodle</li>
  <li>Pug</li>
  </ul>
  
  <p>Base on 3 selection, I guess I have 9 combination?(not sure). Do you have to use a <strong>lot of if statements to sort and query the result</strong>?  Say on the example I want to <strong>display</strong> Bulldog and poodle? or <strong>If anything is not selected</strong> I will have to <strong>show all of the list</strong> of dog registered. What if I have 10 selections each with different combination selection. Do you use if statements for all of those? That is like 100 possible combination. Is there any other way to query realm with other possible combinations? With so many kinds of dogs out there. It would be hard to do if statements and try to hard code all possible combinations</p>
  
  <p>Scenario:</p>
  
  <p>I have a dog class</p>
  
  <pre><code>class Dog : RealmObject(){
   var name:String
   var kind:String
  
  }
  </code></pre>
  
  <p>now on my recycler view I have a <strong>list of dogs</strong> inputted by people. In that people can browse the dog. They can query what type. <strong>Say they want the recycler view to show a poodle and a pug</strong> or a <strong>husky and a poodle</strong>. They would just check the menu item checkbox and then voila the result of husky and poodle is shown</p>
  
  <p>Edit : </p>
  
  <p>I tried using <strong>or</strong> and <strong>and</strong> logical operators. But I can't figure out how to do the possible combinations. All I got is doing if statements which would be a lot since I have 5 selection choices and 25 possible combination</p>
  
  <p>Edit :
   This is the exact problem on my part. The multiple possible combination query on realm.</p>
  
  <p>My goal is to minimise the coding of if statements  by relying on realm query if it's possible</p>
  
  <p>If I hard coded the combination it would look something like this</p>
  
  <pre><code>if(pug &amp;&amp; husky){
   val result = realm.where(Dog::class.java).equalto("kind","husky").equalto("kind",pug").findall()
  }
  .
  .
  .
  .
  . a lot of ifs
  </code></pre>