Replace by value

Dear Experts, I was trying to make script to replace value by if statement. However, something goes wrong and result is not what must be.
Please see result and must be screenshots below:
Result:


Must be:

1 Like

@kvusal ,

something like this

1 Like

Perhaps this workflow would be better suited to a dictionary?

2 Likes

2 Likes

@kvusal

If you need to return a default value for a data value key not being found then you can use python like this.

3 Likes