Anyone know of any reason something like this wouldn't work?
#LOOP 2,%numparam {#exec %item( @%param( %i), %random( 1, %numitems( %param( @%i))))}
Basically what I want to do is substitute a line out of a stringlist from a parameter passed into it as %i. So I've got the above in an alias that loops through the parameters being passed ("red" "black" "white" "blue").
The point of this is that each color gets translated into a string in a stringlist that uses some variables to sub in the right information...
It works correctly (or as I expect at least) but it's not pulling the %random %item out of the stringlist. Instead it's pulling the whole stringlist item which is: mix @number red blue|mix @number white grey|mix @number orange red
which is *one item* in the stringlist. The object is to get just the "mix @number red blue" and "mix @number white grey" executing as commands with the variable expanding...
There's gotta be a better way...lol