funbinod Posted May 13, 2014 Share Posted May 13, 2014 how can i put another if statement inside else if statement....... Link to comment Share on other sites More sharing options...
Ingolme Posted May 13, 2014 Share Posted May 13, 2014 It's hard to tell what you mean. If you want to check for two conditions: } else if(condition1 && condition2) { You can have if statements inside other if statement blocks, but if you can reduce it to a logical operation in a single condition it's better: } else if(condition1) { // Some code if(condition2) { // . . . }} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now