yeah i do know what it does, for some reason my edit didnt come through, i made my changes to the script and hit submit by error and went back straight away and edited it but it didnt come through
pre edit i forgot to write the rest of the line ":error | reseterror" got side tracked remebering it shouldnt run on $identifier use,
re: the error trap while this doesnt completely make a customized command exactly the same as an orginal one, i feel its better than the chance some other part of the code might error, out side of the original command. This was also what disturbed me about his use of $$n.
As for the missing bracket its actually ment to be at the end of the 2nd if, i corrected that in the edit as well
and as for the $len, your wrong $len($1) becomes true on $1 being $false or simple numeric representaion of 0 such as 0, 000.0, 0000.000, etc, I often check for these possabilities, be it needed or not in the particular instance.
alias queryrn {
if (!$isid) {
if ($len($1) && ($1 != $2)) { queryrn $1- }
else {
var %temp = $+($1,$ticks)
queryrn $1 %temp
queryrn %temp $2
}
}
:error | reseterror
}