title: Android - When checking to see if text box length is longer or equal to 1 to then do something, it only does it if character length is 3 or more
body: <pre><code>if (checkBoxSlower.isChecked()) {
      if (editTextSF.getText().length() &gt;= 1) {
          sf2[0] = (Integer.parseInt(editTextSF.getText().toString()));
          sf[0] = 1 + (sf2[0] / 100);
      }
      else {
          sf[0] = 1.35; // default - 1.35
      }
  }
  else if (checkBoxFaster.isChecked()) {
      if (editTextSF.getText().length() &gt;= 1) {
          sf2[0] = (Integer.parseInt(editTextSF.getText().toString()));
          sf[0] = 1 - (sf2[0] / 100);
      }
      else {
          sf[0] = 0.65; // default - 0.65
      }
  }
  </code></pre>
  
  <p>That's my code that i am referring to, the numbers only text box skips the if statement if it says 99 or lower, but with 100 it works, Can't find an answer online </p>