Exiting Functions Early with prog() and return()
In general, a SKILL function runs until the last expression in the function is complete but the SKILL Programming language provides the prog() function in conjunction with the return() function to allow you to programmatically exit at an arbitrary point.