Row creation based on input

Hi,

I am looking for an elegant solution in Aperture. The top part of the screenshot is example data. I need a way that if in column 6 or 8 the value is >0 then create a copy row with these values, set the original ones to 0 and in column 4 there will be a hard-coded new value "1003" for such cases. Does anyone have a suggestion how to do it? Please let me know if the example is unclear. Thanks!

image.png

Answers