mIRC Home    About    Download    Register    News    Help

Print Thread
#222005 03/06/10 11:41 AM
Joined: Apr 2003
Posts: 342
M
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Apr 2003
Posts: 342
The following quote is from https://forums.mirc.com/ubbthreads.php?ubb=showflat&Number=221949

Originally Posted By: m0viefreak
timer 1 500 echo -a $!chan(0)

Notice the "!". this results in $chan(0) being evaluated when the timer actually runs the command


I would have assumed $! would behave the same as /!. Never mind you can't override built-in identifiers anyhow. I assumed that one day it would be possible...



Beware of MeStinkBAD! He knows more than he actually does!
MeStinkBAD #222023 03/06/10 05:13 PM
Joined: Jul 2006
Posts: 4,150
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
Note that to have the /! behavior with an identifier, you can use $~ident, which only call the builtin identifier or return $null


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard