Hi Paul,
Encapsulate all of the checks in a function. If a check fails then Abort[]. E.g
Abort[]
checkPreconditions[] := Module[{x = 1}, If[True, Abort[]]; x = 2]
Or use CompoundExpression
CompoundExpression
( x = 1; If[True, Abort[]]; x = 2; Print@x )
Hi Rohit
The most promising solution I have found so far is to create a "Launcher.nb" notebook where I carry out the "checkPreConditions" and only then use NotebookEvaluate("Launchee.nb") if the checks pass.
This seems to be working well and obviates the need for any checking in Launchee.nb.