Page 1 of 1

[solved] gettokenindex return nil

Posted: 25 Nov 2017 12:54
by binocular222

Code: Select all

echo gettokenindex("#169","#168|#169|#170");  //return 0

Re: gettokenindex return nil

Posted: 25 Nov 2017 13:07
by highend
Your token contains a wildcard...

Code: Select all

echo gettokenindex("#169","#168|#169|#170", , ""); // -> 2
echo gettokenindex("#169","1168|1169|1170"); // -> 2
But imho the flags = "" param isn't explained very well in the help file
for that command...

Btw, Don:

Code: Select all

[flags=iw]
You should include the "c" here as well