Exit
An Exit statement immediately exits the script, and then returns control to the application executing the script.
Syntax
Exit
Remarks
The Exit statement marks early completion of the script. Control is returned from the script as if the script executed successfully.
When used in an Event section in a DataManagementScript (DMS) file, Exit does not terminate the job, it just exits the current block. You can terminate the job using the Job.Stop method.
Exit does not necessarily terminate an interview, it just exits the current block. The Interview object, Terminate and Suspend methods should be used to terminate or suspend an interview.
Examples
An Exit statement
If age < 20 Then
Exit
End If
2. An Exit statement in an UNICOM Intelligence Interviewer script
' Ask about wines tasted
WinesTasted.Ask()
If WinesTasted = {REF} Then
' No need to ask any more wine questions
Exit
End If
Rating[..In WinesTasted].Ask()
Cost[..In WinesTasted].Ask()
See also