Template for a sequence of 5 things in order cond1:= ; Cond2:= ; Cond3:= ; cond4:= ; Cond5:= ; {First - & } init:=Cum(IsDefined(Cond1+Cond2))=1; bin:=ValueWhen(1,Cond2-Cond1<>0 OR init, Cond2); first:=bin AND (Alert(bin=0,2) OR init); {Second - } Init1:=Cum(IsDefined(First+Cond3))=1; Bin1:=ValueWhen(1,Cond3-First<>0 OR Init1, Cond3); Second:=Bin1 AND (Alert(Bin1=0,2) OR Init1); {Third - } Init2:=Cum(IsDefined(Second+cond4))=1; Bin2:=ValueWhen(1,cond4-Second<>0 OR Init2, cond4); Third:=Bin2 AND (Alert(Bin2=0,2) OR Init2); {Fourth - } Init3:=Cum(IsDefined(Third+Cond5))=1; Bin3:=ValueWhen(1,Cond5-Third<>0 OR Init3, Cond5); Fourth:=Bin3 AND (Alert(Bin3=0,2) OR Init3); Fourth