mIRC Home    About    Download    Register    News    Help

Print Thread
#241945 04/06/13 05:09 PM
Joined: Dec 2008
Posts: 1,513
westor Online OP
Hoopy frood
OP Online
Hoopy frood
Joined: Dec 2008
Posts: 1,513
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!


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Unlikely, since it's very simple to do $len($gettok(...))

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


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Dec 2008
Posts: 1,513
westor Online OP
Hoopy frood
OP Online
Hoopy frood
Joined: Dec 2008
Posts: 1,513
Yeah ok thanks i knew about $gettok .


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-

Link Copied to Clipboard