+ 1

Multiple nests?

for the nested if else statements, can I make nested statements within nested statements? to make page long on going program

16th Apr 2017, 1:37 AM
Adam Dewitt
Adam Dewitt - avatar
6 Réponses
+ 11
Yep, you can nest if/else and other structures as much as required for what you need. Just make sure you keep track of the braces and indents well.
16th Apr 2017, 1:48 AM
Tamra
Tamra - avatar
+ 11
If you need to make nested if else statements within other nested statements, there are usually better ways to do it.
16th Apr 2017, 2:20 AM
Hatsy Rei
Hatsy Rei - avatar
+ 11
Ok, good luck :>
16th Apr 2017, 2:51 AM
Hatsy Rei
Hatsy Rei - avatar
+ 5
Yes, you can use as many nested elements you can. but if you want your program to pause after a particular output use 'delay' instead. syntax : delay(miliseconds); Eg : delay(1000); for this program will wait 1second before processing next statement.
16th Apr 2017, 1:50 AM
Jimmy
Jimmy - avatar
+ 1
so can I set up a section of nested statements and use delay(1000) and start with a new segment of nested statements?
16th Apr 2017, 2:11 AM
Adam Dewitt
Adam Dewitt - avatar
+ 1
I understand that, just working with what I have for fun
16th Apr 2017, 2:22 AM
Adam Dewitt
Adam Dewitt - avatar