title: Using dataprovider with conditions
body: <p>Is there way of getting data from a dataprovider based on certain condition? Something like.. </p>
  
  <pre><code>@Test(dataProvider = "Data-Provider-Function" class="Randomclass.class")
  public void parameterIntTest(Class clzz, String[] number) {
     System.out.println("Parameterized Number is : " + number[0]);
     System.out.println("Parameterized Number is : " + number[1]);
  }
  
  //This function will provide the parameter data
  @DataProvider(name = "Data-Provider-Function")
  public Object[][] parameterIntTestProvider(boolean evenOnly) {
              if(evenOnly)
                   return new Object[][]{};
              else
                   return new Object[][]{};
       }
  </code></pre>
  
  <p>or something like that.. </p>