mIRC Home    About    Download    Register    News    Help

Print Thread
#133104 17/10/05 09:34 AM
Joined: Nov 2003
Posts: 157
RuFy Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Nov 2003
Posts: 157
Hi, I have this:
Code:
var %i = 1,%clctmp = $calc(%i + 1)
if (%class [ $+ [ %i ] ] < %class [ $+ [ %clctmp ] ] ) { command }


I have 2 variables and %class1 is < of %class2. What can I do to execute the if with 2 variables??? shocked

#133105 17/10/05 09:40 AM
Joined: Apr 2004
Posts: 759
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 759
ive never been a fan of evaluation brackets and find this method alot more workable:
/set $+(%,testing.,$nick,.,$cid) 1
to set dynamic variables and
$($+(%,testing.,$nick,.,$cid),2) to evaluate their contents.

[code]
if ($($+(%,class,%i),2) < $($+(%,class,%clctmp),2)) { command }
$() is short for $eval


$maybe

Link Copied to Clipboard