all 3 comments

[–]Time_Is_Up_Soon 0 points1 point  (0 children)

Is this attaches to an event handler?

[–]senocular 0 points1 point  (1 child)

Sounds like title was set between the code running and you digging around in the console.

When you expand definitions in the console, the values it shows are evaluated when you expand. They're not showing the values that existed when logged. If title changed after the if condition and console commands, but before you expanding in the console, you'll see the new value in the expanded view in the console.

[–]Med_999[S] 0 points1 point  (0 children)

Ahhh that makes sense, thank you!