mardi 18 septembre 2018

AI2 If-Statement gives undesirable results

I'm having trouble with an if-statement in my app inventor code. What I'm trying to do is to prevent a button being enabled and for a notifier to appear when the number in the textbox of txtPasssengerCode.text is either lower than 10000 or greater than 99999, but no matter what numerical value it is, regardless if it's there by default, the condition is ignored and enables the submit button. Any help is appreciated.

Here's the image of the code block

enter image description here

Aucun commentaire:

Enregistrer un commentaire