IF condition1 THEN
IF Condition2 THEN
Do one thing here - eg. handle error and continue
Do something else here - eg exit script
Do something else here
is absolutely correct, the error can be related to the things you do ... one question, at the end of each instruction in IF have you written the semicolon?
Do one thing here - eg. handle error and continue;
I haven't tried such a thing - not in Qlikview, anyway.
Maybe you could just use one IF THEN control statement and put the other one into something like e.g. a subroutine? Or, instead of nesting them (which is more elegant, of course), you could "flatten it out" and write sth like >>> IF ([condition 1] AND [condition 2]) THEN
ELSEIF [condition 1]
Try it out - in my experience from other scripting languages, you should always account for the most special case - that is likely to be true in the smallest nr. of instances - first.