mIRC Homepage
//alias apple if (boat) return $!upper($1-) | if (carrot) echo -a $v1 - $apple($v1) - $v1 | alias apple

or
Code:
alias apple { if (boat) return $upper($1-) }

//if (carrot) echo -a $v1 - $apple($v1) - $v1

Returns: carrot - CARROT - boat
Expected: carrot - CARROT - carrot

I wasn't aware that $v1 was global, transcending scope, like a global variable.

(Also, $result is always empty. $result should contain CARROT.)
$v1/v2 has always been global. Due to Khaled's consistency in not wanting to break backwards compatibility, I doubt that will change.

$result always being empty is a bug.
© mIRC Discussion Forums