Using this check in case the user leaves the text box blank, he gives me an Alert saying that he has to insert something, but is not entering this part of the code..
1
Leandro, the site has support for codes directly in the body of the question; please avoid posting them in image form.
"but you are not entering this part of the code" what part? if displays the Alert is pq entered in the if and code of ifends after that where you lock your keys
Leandro, the site has support for codes directly in the body of the question; please avoid posting them in image form.
– Woss
Please click on [Edit] and put the code as text. Putting it as an image is not ideal, understand the reasons reading the FAQ.
– hkotsubo
"but you are not entering this part of the code" what part? if displays the Alert is pq entered in the
if
and code ofif
ends after that where you lock your keys– Ricardo Pontual
@Ricardopunctual then mano, but does not display the Alert kdsksdk
– Leandro Carlos
so, do a debug, it may be the variable is not null but empty, which is different. Try changing to that:
recebeValor.toString().trim().isEmpty())
– Ricardo Pontual