But it isn’t. It’s populated when the xxx.rules file is loaded. You’ve placed it outside of your rule.
var someVariable = complicated calculation
carries out the calculation at the time the var line is executed, and places the result in the variable. It does not place the complicated calculation in the variable.