How to refer to a row above the current row?

Hello Community

If we refer to current child table row, we use locals[cdt][cdn], right?
So we can refer to certain field in current row with locals[cdt][cdn].field_name.
My question is, how to refer to a row above the current row?

Many thanks for the attention :slight_smile: