Originally Posted by https://en.wikichip.org/wiki/mirc/variables#Dynamic_Variable_Names
You can also get the value of a dynamic variable by using $eval, $eval allows you to force an expression to evaluate more than once, a bit like the brackets [ ], but brackets are meant to alter the order of evaluation of a line, which itself can have its own drawbacks.

$eval($+(%,<static>,<dynamic>),2)
So you would use $eval($+(%,test.,%which,count),2)

Bracket evaluation are more complex to understand, people usually get away with one single dynamic part, but in your case you kind of have two with the hardcoded 'count'

If you start with %test., you have to follow with [ $+ [ dynamic ] $+ count ]
But if count were a variable such as %count, this wouldn't work and you have to add another pair of $+ [ ]:

Code
//var %test.pausecount 2,%which pause,%count count | echo -a %test. [ $+ [ %which $+ [ %count ] ] ]
I'll change wikichip to be clearer regarding that, but the bracket evaluation page, which is linked in the article for dynamic variable, explains this all.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel