"!a OR b" excludes "3239043b389bb65bd0a1ed3fbd539f-Why?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

"!a OR b" excludes "3239043b389bb65bd0a1ed3fbd539f-Why?

Post by armsys »

"!a OR b" excludes "3239043b389bb65bd0a1ed3fbd539f7e.jpg", even though the (file)name contains "b".
It seems to deviate the basic rule of OR.
Why? What's the logic?

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

Re: "!a OR b" excludes "3239043b389bb65bd0a1ed3fbd539f-Why?

Post by admin »

Logic: (NOT a) OR b

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: "!a OR b" excludes "3239043b389bb65bd0a1ed3fbd539f-Why?

Post by armsys »

admin wrote:Logic: (NOT a) OR b
I'm sorry. I don't get it.
OR returns TRUE if either or both operands is true.
In this case, "3239043b389bb65bd0a1ed3fbd539f7e.jpg" contains "b" and doesn't contain "a". So both operands are TRUE.
So it should be included. But it isn't!

klownboy
Posts: 4468
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: "!a OR b" excludes "3239043b389bb65bd0a1ed3fbd539f-Why?

Post by klownboy »

But, there is an "a". :?

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: "!a OR b" excludes "3239043b389bb65bd0a1ed3fbd539f-Why?

Post by armsys »

klownboy wrote:But, there is an "a". :?
Yours sounds more like an AND operator, namely:

Code: Select all

(!(*a*)) AND (*b*)
That's, in order to be included, it must satisfy BOTH conditions concurrently:
1. The name cannot contain an "a".
2. The name must contain a "b".
Does it sound like an AND operator to you?

On the other hand, why does "!a OR b" includes "Membership_transter_form.pd"
While both "3239043b389bb65bd0a1ed3fbd539f7e.jpg" and "Membership_transter_form.pd" contains "a" AND "b", "!a OR b" excludes the former but includes the latter. Why?

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

Re: "!a OR b" excludes "3239043b389bb65bd0a1ed3fbd539f-Why?

Post by admin »

Please wait for the next beta. Better docs, less bugs...

Post Reply