11-11-2024, 12:59 PM
Either Goto as AB showed (don't need the x=x though) or encase unwanted code in If ("False"). Note you must keep the GoTo jump within the same subroutine.
Code:
Test1()
Test2()
Sub Test1
TextWindow.WriteLine("Used code 1")
Goto subTest_Exit
TextWindow.WriteLine("Unused code 1")
subTest_Exit:
EndSub
Sub Test2
TextWindow.WriteLine("Used code 2")
If ("False") Then
TextWindow.WriteLine("Unused code 2")
EndIf
EndSub