in reply to Evaluate variable while using

Seconding (Thirding?) the vagueness and XY problem complaints. Without more context no one's going to be able to make maybe vague suggestions like a magic tied scalar, or maybe something like Template / TT2 is what you're after, or . . . .

The cake is a lie.
The cake is a lie.
The cake is a lie.