Hey guys,
I'm having difficulties with a problem.
I iterate over an array of data with X rows
And i have the positions of each row incremented, i would like that when i found an exception i shift all the position id's so after each exception the next ID has to be +2 as seen in the second attachment.
After each exception i woul like to have a free unused position so i can use it later.
Any idea of how could i make this ?
Picture one is the data array
Picture two is the desired result