Skip to main content Skip to complementary content

Exit script

This control statement stops script execution. It may be inserted anywhere in the script.

Syntax:  

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.

Arguments:  

Exit script arguments
Argument Description
condition A logical expression evaluating to True or False.
when / unless An exit script statement can be made conditional by the optional use of when or unless clause.

Examples:  

//Exit script

Exit Script;

 

//Exit script when a condition is fulfilled

Exit Script when a=1

Learn more

 

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!

Join the Analytics Modernization Program

Remove banner from view

Modernize without compromising your valuable QlikView apps with the Analytics Modernization Program. Click here for more information or reach out: ampquestions@qlik.com