mIRC Home    About    Download    Register    News    Help

Print Thread
#99740 04/10/04 08:54 PM
Joined: Aug 2004
Posts: 147
N
Vogon poet
OP Offline
Vogon poet
N
Joined: Aug 2004
Posts: 147
What are some cool/helpful tricks you found over the years while using mIRC?

#99741 04/10/04 08:59 PM
Joined: Aug 2004
Posts: 147
N
Vogon poet
OP Offline
Vogon poet
N
Joined: Aug 2004
Posts: 147
To toggle a switch do
Code:
var %switch = $iif(%switch,0,1)

To have ten random numbers do
Code:
$($str($!r(1,10) $chr(32),10),2)

#99742 04/10/04 09:09 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
A simpler way to toggle a switch (assuming it's always a 1 or 0) is var %switch = $xor(%switch,1).


Spelling mistakes, grammatical errors, and stupid comments are intentional.

Link Copied to Clipboard