Rewriting levels values to a new parameter

Hi,
I have a building with levels named like this. For underground part : Poziom -01
For rest floors above the ground as follows: Poziom 00, Poziom 01, Poziom 02 etc
Now i want rewrite to a new shared parameter for room that is called level only the last characters.
For undeground it should be -1
For ground level 0
For first floor 1 and so on.
This is what i came up with. The problem is that the result two list does not match indexes with original list, so the values are rewrite incorrectly. I suppose there is a much simplier solution.

You split your list of values with FilterByBoolMask but then write back to the original list of elements. You would have to split your list of elements to maintain the proper relationship this way. That’s one option.

A better solution would be one that you can apply to all objects and not have to worry about changing list order. Think about removing the parts you don’t need so that you’re left with everything you do need. This may mean dealing with different formats separately, but usually this can be done in a way that doesn’t modify anything that’s not necessary. For example:

Also, for future reference, make sure the image you post has all the node titles visible. Be sure you’re using Export As Image at the right scale when exporting.

Thank you a lot.
As I thought, there is a much simplier and elegant soluntion.
I will also pay attention next time to the image quality, as you mentioned.