You can do that. Logic here you will check a condition before running script.
To control this you need to put actual code in the form of sub routines. You can have as many sub routines you want.
Just see attached QVW.
LOAD * INLINE [
exit script when VEXITCOUNT = 0;
IF VEXITCOUNT > 0 then
If execute.qvw 147.2 K