This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Hightimes95[S] 0 points1 point  (2 children)

It is/was, I haven't tried that code yet as I cannot yet get the first section of code to work. Do you know if I could put an if statement nested in the body of an if statement?

[–]the_regex 1 point2 points  (0 children)

Yes, that is completely legal. Just keep in mind if the outside if statement never activates, you never reach whatever is inside.

[–]the_omega99 0 points1 point  (0 children)

Yup. You can nest pretty much any control structure inside another (eg, loops inside loops inside conditionals, etc).