Jan Inge -
I did not know whar version of TS you are using so I created the sequence using TS 2.0.
In the example a save the state to the numeric result of a numeric limit step and the step determines that execution is normal if the state is 1, so the step passes, otherwise it fails. The precondition of the next steps use the pass/fail status of the first step. This way you do not need a local variable.
Scott Richardson (NI)
Scott Richardson
https://testeract.com