I1 S1 I2 S2 I3 S3 I4 S4 I5 S5 I6 S6 ACTUAL WANTED
10 1 10 2 0 0 0 0 0 0 0 0 3 3
10 1 10 2 10 3 0 0 0 0 0 0 3 6
10 1 10 2 10 3 10 4 0 0 0 0 3 10
if I1=I2 then (S1+S2)
elseif I1=I2=I3 then (S1+S2+S3)
elseif I1=I2=I3=I4 then (S1+S2+S3+S4)
else ""
endif
the code don't consider the other condition when the first is verified, i don't know how to build a loop and consider all condition.
Thank you very much for your help i hope is clear now , and you're write is spss modeler