I usually do somethin like

set %some.variable. $+ %i
then read it by
%some.variable. [ $+ [ %i ] ]

the periods make the variables a bit prettier