Forum Discussion
YMinaev
Staff
14 years agoHi,
Also, code which is executed when there's no expected node goes right after your loop. There's no need to use try/catch at all. The loop can either jump to the caller function (via return), or finish normally if it doesn't find the needed node according to your current code.
Also, code which is executed when there's no expected node goes right after your loop. There's no need to use try/catch at all. The loop can either jump to the caller function (via return), or finish normally if it doesn't find the needed node according to your current code.