Nested statements

Does anyone here know of any articles that explain/teach the concept on how to navigate nested statements?<br /><br />example:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->if(something) {<br />    while(var == true) {<br />  if(i < 10000) {<br />      i++;<br />  } else {<br />      var = false;<br />  }<br />    }<br />}<br />if(a1_steak_sauce == GOOD) {<br />    print("let's eat the steak!");<br />}<!--c2--></div><!--ec2--><br /><br />I'm thinking recursion would be required of this. But anyway basically I'd like to learn how to be able to navigate and manipulate such a statement "tree".<br /><br /><br />Thanks all!
</div>
 
Top