This control statement stops script execution. It may be inserted anywhere in the script.
Exit Script [ (when | unless) condition ]
Since the exit script statement is a control statement and as such is ended with either a semicolon or end-of-line, it must not cross a line boundary.
||A logical expression evaluating to
||An exit script statement can be made
conditional by the optional use of
//Exit script when a condition is fulfilled
Exit Script when a=1