mIRC Homepage

More assignment operators

Posted By: hixxy

More assignment operators - 28/07/06 05:32 PM

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.
Posted By: Mpdreamz

Re: More assignment operators - 28/07/06 05:51 PM

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.
Posted By: genius_at_work

Re: More assignment operators - 29/07/06 01:02 AM

I think these would be very useful:

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

-genius_at_work
Posted By: Zerg

Re: More assignment operators - 29/07/06 04:03 PM

picwiners dream.
© 2021 mIRC Discussion Forums