Can you include 'if' in an else statement? help please... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can you include 'if' in an else statement? help please...

3rd Mar 2017, 12:14 PM
Nash
Nash - avatar
4 Answers
+ 3
If you mean this: if(...){ ...; } else{ if(...){ ...; } } Then yes you can.
3rd Mar 2017, 12:52 PM
valentin
+ 2
of couse you can
3rd Mar 2017, 2:04 PM
hcf
+ 1
ofcourse you can..it is called "Nested if"..
3rd Mar 2017, 1:46 PM
ibrahim selman
0
yes you can,as a nested if
30th Mar 2017, 6:55 AM
beatrice machoka