I do know there is the replace text command, but somhow it does not work. + do not know how to retrieve the 45 and 14 in a logic manner (note the values could be any other number).
[2020-04-05 list item with multiplication in name.gh|attachment]
Any suggestions?
I think this is what you’re after - it works by splitting the text at the semicolons, and then by the asterisk. This makes a tree where the first item is the item to be multiplied, and the second is the multiplication value (and if it doesn’t have one, just defaults to being a 1)
Hi!
Thank you!
I implemented it in my model, however came to the conclusion there is still 1 challenge to go:
If there is No XYZ, an empty item has to be added in the list at that location.
Reason for this is, that I can trace back the original command.
All 0 items --> commando 0
All 1 items --> commando 1
All 1 items --> commando 2
Thanks for your quick response.
But the point is I would like to ‘add’ the empty items.
In Grey is what we have at the moment.
In yellow what I would like to have.
I would like to do this because then I will be able to trace back to which original commando it belonged 1,2,3 (because the branch/path names dont trace back that far).
How about this? I split the list twice, once to get the numbers, and again to get the XYZ’s. Then you determine what’s missing from the XYZ list, and insert an ‘empty’ at that location, in the other list.
It will break if it ever receives anything other than XYZ, a number, or a semicolon, though!
Thank you !
It does exactly what is needed.
Because you are very good in List manipulations, maybe you can solve the challenge which I have posted a while ago and noboday seems to have the answer. There is one answer given but that not what I was looking for.
Thank you once again!
and if you need some additional information.