mIRC Home    About    Download    Register    News    Help

Print Thread
#178131 05/06/07 05:13 PM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline OP
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
I know in basic terms NOOP means No operation but what does it mean for mIRC when its used?

Does it mean that the $command is not evaluated?



Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Lpfix5 #178133 05/06/07 06:25 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
It means nothing is done with the result. An identifier returns some value. If used at the beginning of a line, mIRC will try treat what's returned as an alias, which is generally not what you want to happen. With /noop, it will not do any command with the returned results.


Invision Support
#Invision on irc.irchighway.net
Lpfix5 #178143 05/06/07 07:33 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Riamus explained what it does, but you might be thinking "why do NOTHING with the results?"

The $findfile identifier lets you specify a /command parameter so that mIRC should do something with each file, and it returns the number of files found. The number of files found are often irrelevant as you may just want to list the files or something, in which case you could use /noop to ignore the return value.

This is only one example of where it's useful.

It's also very useful in $regex/$com scripting but I won't go into it as they're pretty complex.

Lpfix5 #178170 05/06/07 10:15 PM
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
heavily used for feedback via $input, too: error messages, "try again later" etc..
e.g. (quite useless)
Code:
noop $input(Error: $crlf $+ You have to connect first!,wogdk6,Input Error)



hixxy #178176 06/06/07 01:01 AM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline OP
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Cool thanks


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Lpfix5 #179203 19/06/07 05:33 AM
Joined: Apr 2003
Posts: 342
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2003
Posts: 342
/NOOP works just like this alias, which I used before /NOOP was introduced (hell I still use it)...

alias NULLIFY { return }



Beware of MeStinkBAD! He knows more than he actually does!

Link Copied to Clipboard