Strange Ternary Operator Behavior or Is It Just Me?

I am using the modal component to open a form to display or edit a table record. I have a Submit button on the modal form the title of which I want to change depending on whether the user has made any changes to the form.

I found this awesomely helpful forum topic that works brilliantly. I put the transformer described by this article into a ternary in the Text property of the submit button as shown below.

Note that the popup says that the transformer is returning false, but the ternary is returning the value for true. See the button at the bottom of the image.

What am I doing wrong here?

Solved. I need to use the .value property of the JS Transformer to get the true / false value correctly.