mIRC already has an existing structure for setting variables, which works just fine.

mIRC is not PHP, it is not TCL, it is mIRC, and thus has a different structure than those other languages. There is no reason to make mIRC act like any other language just so that programmers of those languages can use their brains less when programming in mIRC.

BTW, you can already (almost) do what you are showing in your script.

Code:

alias somevar { if ($isid) return %somevar | set %somevar $iif($1 isin =,$2-,$1-) }



somevar = hello there

echo -a $somevar
hello there

I don't think that is what you are looking for, but it is the best mIRC can do.

-genius_at_work