sequential;
v223:=0;
v222:=0;

IF V224=1 then begin
 if v8<>-9999 then v223:=v223+v8;
 if v14<>-9999 then v222:=v222+v14;
 if v20<>-9999 then v223:=v223+v20;
 if v26<>-9999 then v222:=v222+v26;
 if v32<>-9999 then v223:=v223+v32;
 if v38<>-9999 then v222:=v222+v38;
 if v44<>-9999 then v223:=v223+v44;
 if v50<>-9999 then v222:=v222+v50;
 if v56<>-9999 then v223:=v223+v56;
 if v62<>-9999 then v222:=v222+v62;
 if v68<>-9999 then v223:=v223+v68;
 if v74<>-9999 then v222:=v222+v74;
 if v80<>-9999 then v223:=v223+v80;
 if v86<>-9999 then v222:=v222+v86;
 if v92<>-9999 then v223:=v223+v92;
 if v98<>-9999 then v222:=v222+v98;
end;

if v224=2 then begin 

 if v8<>-9999 then v222:=v222+v8;
 if v14<>-9999 then v223:=v223+v14;
 if v20<>-9999 then v222:=v222+v20;
 if v26<>-9999 then v223:=v223+v26;
 if v32<>-9999 then v222:=v222+v32;
 if v38<>-9999 then v223:=v223+v38;
 if v44<>-9999 then v222:=v222+v44;
 if v50<>-9999 then v223:=v223+v50;
 if v56<>-9999 then v222:=v222+v56;
 if v62<>-9999 then v223:=v223+v62;
 if v68<>-9999 then v222:=v222+v68;
 if v74<>-9999 then v223:=v223+v74;
 if v80<>-9999 then v222:=v222+v80;
 if v86<>-9999 then v223:=v223+v86;
 if v92<>-9999 then v222:=v222+v92;
 if v98<>-9999 then v223:=v223+v98;

end;