title: Mocha conditional testing - If else always passes
body: <p>I'm trying to do a conditional test on one of my elements, but mocha just skips the "if else" statements completely and just displays the output of "it("")"</p>
  
  <p>Here's how I'm doing it:</p>
  
  <pre><code>    it('if test case', async function () {
  
          var cardProcZero = await driver.hasElementByAccessibilityId("card_proc_0"); // looks up the element
  
          let visivel = expect(cardProcZero).to.be.ok; // expects it to exist 
          let naoVisivel = expect(cardProcZero).to.not.be.ok; // expects it not to exist
  
          if (cardProcZero == naoVisivel) { // if it's not visible, it creates the element
              let adicionarProc = await driver.waitForElementByAccessibilityId("button_addProcedimento"); // adds the element
              await adicionarProc.click();
              return false;
  
          } else if (cardProcZero == visivel) { // if it is visible, it clicks on it
              await cardProcZero.click(); // clicks on existing element
              return true;
          }
      });
  </code></pre>
  
  <p>In the terminal, mocha outputs this, right after my last test case:</p>
  
  <pre><code>✓ if test case (527ms)
  </code></pre>
  
  <p>It doesn't even try to do the other existing "it's". It just skips it. </p>
  
  <p>What exactly am I doing wrong?</p>