mIRC Home    About    Download    Register    News    Help

Print Thread
#241945 04/06/13 05:09 PM
Joined: Dec 2008
Posts: 1,483
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
Hello,

As you saw in the title the request is if the $len can count like the tokens system.

e.g:
/var %test test,test1,test2
//echo IS: $len(%test,1,44)
OUTPUT: IS: 4

- Thanks!

5
5618
5618
5
Unlikely, since it's very simple to do $len($gettok(...))

Joined: Oct 2003
Posts: 3,641
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,641
I second the response-- use $len($gettok(%test,1,44)). Functions like these are made to be focused and composable in this way.

Joined: Dec 2008
Posts: 1,483
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
Yeah ok thanks i knew about $gettok .


Link Copied to Clipboard