I would simply like to copy and paste the numbers included in column 2 and 3 in the ligne below IF and only IF the first 4 digits of the string in column 1 in line n+1 is equal to the first 4 digits of the string line n --> 50231 for example

Here is my code:

```
function myFunction() {

 var feuilleVERIF = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('CR-MR')
 var lastRow = feuilleVERIF.getLastRow();
 tableau = feuilleVERIF.getRange('A10:N');
 for (i=0; i < tableau.length + lastRow; i++){
   var PARAM = tableau[i][3].substring(0,6);

   if ( tableau[i+1][0].substring(0,6) == PARAM){
     var CoeffA = tableau[i][4].getValues();
     var CoeffB = tableau[i][5].getValues();

     CoeffA.copyTo(tableau[i+1][4])
     CoeffB.copyTo(tableau[i+1][5])
   }
 } 
}

```

[Capture](https://i.stack.imgur.com/19sND.png)