mIRC Home    About    Download    Register    News    Help

Print Thread
#169231 20/01/07 06:23 PM
S
SithLORD
SithLORD
S
can i do this

dec (%di -1 ) or is wrong

any one help please

#169232 20/01/07 06:30 PM
Joined: Apr 2006
Posts: 464
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
I do think it will work, but if you do:
dec %di

It will automaticly decrease %di with -1.

#169234 20/01/07 06:48 PM
G
genius_at_work
genius_at_work
G
If you decrement by -1, you are actually incrementing by +1.

Code:
alias dtest {
var %test = 1
echo -a Test1: %test
dec %test -1
echo -a Test2: %test
}


-genius_at_work

#169247 20/01/07 07:53 PM
D
DJ_Sol
DJ_Sol
D
semantics :p he wanted to subtract one!!

/dec %var


Link Copied to Clipboard