"!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?
"!a OR b" excludes "3239043b389bb65bd0a1ed3fbd539f-Why?
-
armsys
- Posts: 557
- Joined: 10 Mar 2012 12:40
- Location: Hong Kong
-
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?
Logic: (NOT a) OR b
FAQ | XY News RSS | XY X
-
armsys
- Posts: 557
- Joined: 10 Mar 2012 12:40
- Location: Hong Kong
Re: "!a OR b" excludes "3239043b389bb65bd0a1ed3fbd539f-Why?
I'm sorry. I don't get it.admin wrote:Logic: (NOT a) OR b
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?
But, there is an "a". 
-
armsys
- Posts: 557
- Joined: 10 Mar 2012 12:40
- Location: Hong Kong
Re: "!a OR b" excludes "3239043b389bb65bd0a1ed3fbd539f-Why?
Yours sounds more like an AND operator, namely:klownboy wrote:But, there is an "a".
Code: Select all
(!(*a*)) AND (*b*)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?
Please wait for the next beta. Better docs, less bugs...
FAQ | XY News RSS | XY X
XYplorer Beta Club