Struggling with how code executes

I gave that a try, while I got no error when I saved the driver it didn't change the log results.

I found this:

In the end, I did away altogether with sending that to the log - I think it's bugged - I tried making it a bool and tried a few other tricks but I'm dropping it!