Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
NavinReddy
Creator II
Creator II

Exit ()

Hi All,

What is the use of Exit function in Qlikview

Thanks in Advance

Niranjan

7 Replies
Siva_Sankar
Master II
Master II

The exit script

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

script. An exit

script statement can be made conditional by the optional use of when or unless

clause.

Regards,

Siva

senpradip007
Specialist III
Specialist III

Exit() is used in script. Specially in incremental loading purpose.

Let us go through an example

if  QvdCreateTime('MyFile.qvd') <> 0 then

     Statement;

else

     Exit();

end if

Hope it will help you.

er_mohit
Master II
Master II

See the reference manual it 'll be clears to u or you can search on qlikview help

Exit function:

The exit script control statement stops script execution. It may be inserted anywhere in the script. An exit

script statement can be made conditional by the optional use of when or unless clause. The syntax is:

exit script[ (when | unless) condition ]

Where

condition is a logical expression evaluating to true or false.

Since the exit script statement is a control statement and as such is ended with either a semicolon or end-ofline,

it must not cross a line boundary.

Examples:

exit script

exit script;

exit script when a=1

Not applicable

Exit function is used to terminate the execution or a command line in the script.


kalyandg
Partner - Creator III
Partner - Creator III

Hi Rohit,

Please let  me know what is line boundary?

"It must not cross a Line Boundary"

jonathandienst
Partner - Champion III
Partner - Champion III

There is no Exit() function and that syntax will cause an error. There is an Exit Script command, used like this:

     Exit Script;

     or

     Exit Script When vTest = 1;

The command terminates script execution. Code after the Exit Script will still be parsed, and a syntax error in the non-executable code may still cause the reload to fail.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein