NESTING in SX/B
![RobotWorkshop](https://forums.parallax.com/uploads/userpics/915/nCTRZ4MIBWKDB.jpg)
I've read that you can nest gosubs several levels deep. What about IF THEN ENDIF, and IF THEN ELSE ENDIF. Are there any things to watch out for in regards to nesting those? If not, will the EXIT just exit the IF THEN ENDIF it it in or out of all the nested ones?
Comments
EXIT will only exit from the IF...THEN...ENDIF structure that it is in. It will NOT exit out of all the nested ones.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.iElectronicDesigns.com
·