mIRC Home    About    Download    Register    News    Help

Print Thread
#169231 20/01/07 06:23 PM
Joined: Dec 2006
Posts: 16
S
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

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.

Joined: Oct 2005
Posts: 1,741
G
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

Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
semantics :p he wanted to subtract one!!

/dec %var


Link Copied to Clipboard