I have two textInput components. This code: if((goodsInAccount.text != "") && (goodsInAdvice.text.indexOf("/") == 0)) { ..... }
but it returns true when goodsInAccount contains no text and goodsInAdvice contains the "/" character. The problem seems to be with the logic knowing that goodsInAccount.text is empty. It's tried using goodsInAccount.text.length > 0 too. Maybe I've just not had enough coffee yet, or is this a known bug?