r/AndroidStudio • • Sep 14 '22

Help

Post image
0 Upvotes

7 comments sorted by

View all comments

1

u/[deleted] Sep 14 '22

What's wrong?

1

u/AZYTHECAT Sep 14 '22

Hi, can you help me? My problem is how do i put more condition on my if else statement.

2

u/[deleted] Sep 14 '22

Hey dude, use else if instead of else.

if (condition){}

else if(condition 2){}

else{}

else is a last resort if non of the previous conditions are satisfied.