Android Question If..then...and in design gets error

rkxo

Active Member
Licensed User
Longtime User
hi,
why i can't put condition "and" in designer code variant get error?
B4X:
If panel1.Visible=True And Spinner.Visible=true Then 'error!! And Spinner.Visible=true
panel2.Top=panel1.Top + panel1.Height
panel2.Height=100%y
panel2.Height=100%y
End If
thanks
 

rkxo

Active Member
Licensed User
Longtime User
I try but not work

B4X:
'this work
if a=b then
end if

'Crash '
if a=b and c=d then
end if
'crash
if (a=b) and (c=d)then
end if
'crash
if (a)=b and (c)=d then
end if
'crash
if (a and c)=b then
end if'



what is the correct combination?

thanks
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
I Hope
B4X:
if a=b then
    if c=d then
    end if
end if
 
Upvote 0
Top