What about the following? on mouseUp do "local tvar=1.2" put 2*tvar end mouseUp Should NOT work. But this should work (as do recompiles?): on mouseUp do "local tvar=1.2" do "put 2*tvar" end mouseUp