mIRC Home    About    Download    Register    News    Help

Print Thread
#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.

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

Joined: Oct 2003
Posts: 25
Z
Ameglian cow
Offline
Ameglian cow
Z
Joined: Oct 2003
Posts: 25
picwiners dream.


Link Copied to Clipboard