I have an array with the jump number and its value. I need to make a count of the jump value until it reaches 4.00. And continue this count until the end of the jump.
salto 1 => 2,00 salto 2 => 2,00 salto 3 => 2,00 salto 4 => 2,00 salto 5 => 2,00 salto 6 => 2,00 salto 7 => 2,00 salto 8 => 2,00 salto 9 => 2,00 salto 10 => 2,00
The end result should be:
Salto 2 => 4,00 Salto 4 => 4,00 Salto 6 => 4,00 Salto 8 => 4,00 Salto 10 => 4,00
This is only a basis for understanding, the number of jumps can vary and the value can also.