Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
b_garside
Partner - Specialist
Partner - Specialist

Jump to a section in script

How do I jump to another section in the script if my subroutine determines it needs to do so.

Maybe that is bad form. more curious if this is done or is it strictly kept within the routine?

sub loadqvd
If Filesize('Billets.qvd') <= 0 then

what command is need to jump to another piece of code?

else

Do this....


let vLoadAttempt ='$(vLoadAttempt)'+1;

EndIF
End Sub

1 Solution

Accepted Solutions
Not applicable

You can use EXIT SUB to exit the sub routine  or CALL another SUB Routine.

sub loadqvd
If Filesize('Billets.qvd') <= 0 then

EXIT SUB // To exit the SUB Routine or USE CALL another SUB Routine

else

Do this....


let vLoadAttempt ='$(vLoadAttempt)'+1;

EndIF
End Sub

View solution in original post

2 Replies
Not applicable

You can use EXIT SUB to exit the sub routine  or CALL another SUB Routine.

sub loadqvd
If Filesize('Billets.qvd') <= 0 then

EXIT SUB // To exit the SUB Routine or USE CALL another SUB Routine

else

Do this....


let vLoadAttempt ='$(vLoadAttempt)'+1;

EndIF
End Sub

b_garside
Partner - Specialist
Partner - Specialist
Author

Perfect Thanks