mIRC Homepage
Posted By: billythekid Something interesting - 17/07/06 06:58 PM
is $eval() and $() the same thing now?

//echo $eval($me)
//echo $eval($me,0)
//echo $eval($me,some text)
//echo $eval($me,some text,0)

all return the same as

//echo $($me)
//echo $($me,0)
//echo $($me,some text)
//echo $($me,some text,0)

or does $() do somethign else thats peculiar to it that $eval doesnt?

/me goes to the docs....

btk
Posted By: Mpdreamz Re: Something interesting - 17/07/06 07:13 PM
nope $() is short for $eval()
smile
Posted By: MikeChat Re: Something interesting - 17/07/06 07:13 PM
the $() is a short version of $eval much like $r is short for $rand
$() is also used in the matchtext section of on text or on input events

on *:text:$($me):#: Echo -s $nick said $me }

on *:text:$($+(*,$me,*)):#: Echo -s $nick said $me }

so on
© mIRC Discussion Forums