If statements | SoloLearn: Learn to code for FREE!

+5

If statements

Can if statements be chained inside each other?

12/1/2017 12:01:10 AM

Owolawi Kehinde

3 Answers

New Answer

+13

They can be chained together, and nested inside each other, however you need for your program. //Chaining if () {} else if () {} ... else {} //Nesting if () { if () { if () {} } else if() {} else {} }

+8

yes they can be nested

+3

yep and they can be nested as deep as you wish