Btw, there is no need to convert anything to a int or string. mIRC knows how to handle it. in mIRC any variable is a string. If it contains only number, then using isum will return 1/$true , and if you use inc or dec, it will increase/decrease its value.