Replacement list by condition in dynamo

Hi everyone,

Can anyone tell me how I can change all elements
in list by condition if number is -2 then 98, if number
is -1 then 99, if number is 0 then 100 et cetera?
I try by node IF but it didn’t work.


Maby some one knows way to solve it.​​

Thank you in advance​​​

Hello @krzysiektoja could something work for you ?

thanks I try but unfortunately it still didn’t work with this

Arhhh its a string try something

2 Likes

Thx, I change it, now it works :slight_smile:

1 Like

hello, you can also create with an inverted dictionary
key 0…-100
value 100…0
cordially
christian.stan

Is it math? Can you just say x + 100?

1 Like