title: If Else Statements in Cypress
body: <p>I have problem with <code>if-else</code> in cypress. I have 3 questions. And the questions is not consistent, always change. So I wanted to set an answer for specific question. The error is, whenever the question B appear, cypress cant skip the question A and it stops. Cypress didn't read my if and else, and I can't understand, why it happens.</p>
  
  <p>Here is my code: </p>
  
  <pre><code>let disabled = null;
  
  cy.contains("What is your dream car brand?").then(() =&gt; {
    disabled = true;
  
    cy.get("input[name=securityQues]").type("Ferrari");
  
    cy.end();
  });
  
  if (disabled == false) {
    cy.contains("What is your favorite movie?").then(() =&gt; {
      cy.get("input[name=securityQues]").type("Forrest Gump");
    });
  } else {
    cy.contains("Where is your favourite place to vacation?").then(() =&gt; {
      cy.get("input[name=securityQues]").type("Japan");
    });
  }
  </code></pre>