With the original qty and the fails values you can fill in all values. (*)
So you could set up a script which is triggered every time a value is keyed in.
You have to click once on **)
... then everything will be fine:
If rows are added or an input value (*) is changed, the table gets updated - all the other changes will be ignored.
New Table( "test",
Add Rows( 7 ),
New Column( "original", Set Values( [100, ., ., ., ., ., .] ) ),
New Column( "failed", Set Values( [1, 2, 3, 5, 32, 2, 6] ) ),
New Column( "Survive" )
);
:survive << set Formula(
If( Row() != 1,
:original = Lag( :Survive )
);
:original - :failed;
);
Wait( 0 );
:survive << set Formula(
If( Row() != 1,
:original = Lag( :Survive )
);
:original - :failed;
);
edit:
hm, I don't know the difference to last time, but now the auto-update doesn't work at first place
--> so just trigger it twice
[I hope that tomorrow I won't need 3 trials ...]
edit:
unnecessary For each row removed.
**)
- any idea how to get rid of this message? ->
- any idea why the last :survive entry is missing [at least this is better today: not missing anymore :]
- any idea why today I need the formula command 2x ???