Here is two ways to set and retrieve such vars...
//set -u %var $+ $me test | echo -a %var $+ $me = %var [ $+ [ $me ] ]
//set -u $+(%,var,$me) test | echo -a $+(%,var,$me) = $eval($+(%,var,$me),2)
and how to use them in /if statements...
//set -u $+(%,var,$me) test | if $eval($+(%,var,$me),2) == test { echo -a * Match: $ifmatch }