unknow operator

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
tiago
Posts: 589
Joined: 14 Feb 2011 21:41

unknow operator

Post 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++; }
Power-hungry user!!!

highend
Posts: 14955
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: unknow operator

Post 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).
One of my scripts helped you out? Please donate via Paypal

tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: unknow operator

Post 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).
Power-hungry user!!!

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: unknow operator

Post by admin »

That was a bug. Fix comes.

dupko
Posts: 1
Joined: 08 Aug 2012 13:15

Re: unknow operator

Post by dupko »

admin wrote:That was a bug. Fix comes.
WHEN>? :naughty:

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: unknow operator

Post by admin »

v10.90.0015 - 2012-03-12 10:45

PeterH
Posts: 2829
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: unknow operator

Post 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?

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: unknow operator

Post by Stefan »

That seams to be rather an spamming post to me....

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: unknow operator

Post by admin »

Stefan wrote:That seams to be rather an spamming post to me....
Yep. I just removed his "signature".

Post Reply