I have a path: orders/line/2/codes/code/4/value and I need to create a list where I need to multiply the path based on number values within the path:
from this: orders/line/2/codes/code/4/value
to this:
[orders/line/1/codes/code/1/value,
orders/line/1/codes/code/2/value,
orders/line/1/codes/code/3/value,
orders/line/1/codes/code/4/value,
orders/line/2/codes/code/1/value,
orders/line/2/codes/code/2/value,
orders/line/2/codes/code/3/value,
orders/line/2/codes/code/4/value]
how could I achieve this the most efficient way?
The number of number values are changing each time, like: orders/line/2/codes/code/4/values/value/5/kg or even more tag.