In SX Microcontrollers, SX/B Compiler and SX-Key Tool, SteveD wrote: [3]I understand that when a GOSUB instruction sends the program to a subroutine that contains a RETURN command the program will return to the next instruction following the initial GOSUB instruction.[/3] [3][/3] [3]My question is if a GOSUB instruction sends the program to a subroutine that contains an IF.THEN statement that sends the program to another subroutine which contains a RETURN, will the program go back to the next instruction following the IF.THEN or will it be directed to the instruction following the initial GOSUB instruction?[/3] [3] [/3] Thanks ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=100954 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)