Variable Not In Scope

It returns the print statement, so it is not valid.

Is it because I set the value of W in a separate level? When I go to the next level maybe that value does not exist, or remains unset after the level transfer.

I tried using a function w/ output integer:

still same results.

If I try using a CastTo node, I get an error and I believe it’s because of a UE4 update, changing the way casting functions: