Android Question If Condition (better way)

bijou

Member
Licensed User
Hi
i'm not a good programmer, so i'd like to know the best way to build this if condition.
actually i'm doing this:

B4X:
Sub ImageView2_Click
   If EditText1.Text="tala" Then
   Label2.Visible=True
   Else If EditText1.Text="tala " Then
   Label2.Visible=True
   Else If EditText1.Text="Tala" Then
   Label2.Visible=True
   Else
   Label2.Visible=False

i'd like to di this

if EditText1.Text= "tala" or "Tala " or ... then
Label2.Visible=True

also don't make difference between small letters and capital letters and if possible ignore space ?!
 
Last edited:
Top