mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2003
Posts: 259
M
milosh Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Dec 2003
Posts: 259
Good evening! I guess that I don't know the right way to use it :

why can't I use this /echo -s $mid(%string, %num, %var + 1)
but have to use this %nvar = %var + 1 | /echo -s $mid(%string, %num, %nvar)

thanx!

Joined: Jan 2003
Posts: 2,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
The only two places where you can perform math functions are variable setting and $calc(). The latter is usually the most practical way to do what you want: $mid(%string,%num,$calc(%var + 1))

Joined: Dec 2003
Posts: 259
M
milosh Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Dec 2003
Posts: 259
Thanx, man! You helped me a lot, I hate to write unnesesary codes. frown


Link Copied to Clipboard