mIRC Home    About    Download    Register    News    Help

Print Thread
More assignment operators #154206 28/07/06 05:32 PM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline OP
Hoopy frood
OP Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
var %x += 10 (var %x = %x + 10)
var %x -= 10 (var %x = %x - 10)
var %x *= 10 (var %x = %x * 10)
var %x /= 10 (var %x = %x / 10)
var %x ^= 10 (var %x = %x ^ 10)

These would preferably also work if you don't use the /var command.

Re: More assignment operators #154207 28/07/06 05:51 PM
Joined: Apr 2004
Posts: 759
M
Mpdreamz Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 759
totally agreed

in addtion:
var %x = 10
var %x += hello
//echo -a %a = 10hello

would be nice if it concatenated, if either the assigned string or the added string is not numeric.


$maybe
Re: More assignment operators #154208 29/07/06 01:02 AM
Joined: Oct 2005
Posts: 1,741
G
genius_at_work Offline
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
I think these would be very useful:

+= add
-= subtract
/= divide
%= modulus
*= multiply
.= concatenate

-genius_at_work

Re: More assignment operators #154209 29/07/06 04:03 PM
Joined: Oct 2003
Posts: 25
Z
Zerg Offline
Ameglian cow
Offline
Ameglian cow
Z
Joined: Oct 2003
Posts: 25
picwiners dream.