How to change fields in an object with for each loop and conditional if?

Hi,

I want to loop through the fields in an object and set fields with a null value to contain the string 'empty' instead. I'm trying to do it like this:

But when I hit the stop and debug, all the null fields in the object are still null.

What am I doing wrong here?

Thanks in advance.

3 replies