title: How to implement 'if' in Gherkin
body: <p>I am trying to convert Selenium test to Gherkin. Is there way to implement if statements in Gherkin?</p>
  
  <p>Example : assume the code is written in the below format. I am just writing description as below. Please understand the part after double slash is the actual Selenium code:</p>
  
  <pre><code>// launch the application 
  // login to application
  // navigate to page
  String str;
  if(str== "XYZ")
  {
      // verify title
  }
  //verify text field 1
  //verify test field 2
  //verify select box
  </code></pre>
  
  <p>For this I am trying to write code in Gherkin as follows</p>
  
  <pre><code>Given user launches the application
  When user login with valid credentials
  and navigate to required page
  When String str is "XYZ"
  Then verify title
  And verify text field 1
  And verify test field 2
  And verify select box
  </code></pre>
  
  <p>but this code is incorrect because if the str is not equal to "XYZ" we want that title should not be verified but other verification like text field1,2 and select box should be verified.</p>