mIRC Home    About    Download    Register    News    Help

Print Thread
help on Dec stuff #169231 20/01/07 06:23 PM
Joined: Dec 2006
Posts: 16
S
SithLORD Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: Dec 2006
Posts: 16
can i do this

dec (%di -1 ) or is wrong

any one help please

Re: help on Dec stuff [Re: SithLORD] #169232 20/01/07 06:30 PM
Joined: Apr 2006
Posts: 464
O
OrionsBelt Offline
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.

Re: help on Dec stuff [Re: SithLORD] #169234 20/01/07 06:48 PM
Joined: Oct 2005
Posts: 1,741
G
genius_at_work Offline
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
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

Re: help on Dec stuff [Re: genius_at_work] #169247 20/01/07 07:53 PM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
semantics :p he wanted to subtract one!!

/dec %var