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++; }
XYplorer Beta Club