Not really sure what you mean. mIRC supports a lot of methods for writing to and reading from variables, as well as ways to enumerate through all the variables of a given wildcard match. /var /set /inc /dec /unset $var(). The /help entry on these are pretty good.
Can't get more direct than that unless you were Lawnmower Man