Page 1 of 1

unknow operator

Posted: 12 Mar 2012 01:08
by tiago
Hi people!

I need to compare a string and it can be "LikeI" (for words) or "==" (for numbers), but when it comes to numbers i receive a message on "unknown operator: LikeI".

What options I have?

Code snippet:

Code: Select all

         IF ("$srcTST" == "$key" || "$srcTST" LikeI "$key") { echo "Found!<crlf 2>key: $key<crlf>source: $src"; break}
         ELSEIF ("$srcTST" != "$key" || "$srcTST" LikeI "$key") { $ctrl++; }

Re: unknow operator

Posted: 12 Mar 2012 02:04
by highend
i receive a message on "unknown operator: LikeI"
And which value have $key and $srcTST when you get that message?

You've probably omitted the pattern in the second expression (after LikeI).

Re: unknow operator

Posted: 12 Mar 2012 02:12
by tiago
highend wrote:
i receive a message on "unknown operator: LikeI"
And which value have $key and $srcTST when you get that message?

You've probably omitted the pattern in the second expression (after LikeI).
They have equal values (numbers).

Re: unknow operator

Posted: 12 Mar 2012 10:35
by admin
That was a bug. Fix comes.

Re: unknow operator

Posted: 08 Aug 2012 13:16
by dupko
admin wrote:That was a bug. Fix comes.
WHEN>? :naughty:

Re: unknow operator

Posted: 08 Aug 2012 13:44
by admin
v10.90.0015 - 2012-03-12 10:45

Re: unknow operator

Posted: 08 Aug 2012 18:12
by PeterH
admin wrote:v10.90.0015 - 2012-03-12 10:45
:lol: :lol: :lol:

dupko: it seems you don't know Don, respectively his speed regarding fixes?

Re: unknow operator

Posted: 08 Aug 2012 20:34
by Stefan
That seams to be rather an spamming post to me....

Re: unknow operator

Posted: 08 Aug 2012 20:41
by admin
Stefan wrote:That seams to be rather an spamming post to me....
Yep. I just removed his "signature".