[DOCS-8084] Comment on: "manual/reference/operator/aggregation/and.txt" Created: 12/Jun/16 Updated: 03/Nov/17 Resolved: 13/Jun/16 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 01112017-cleanup |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Docs Collector User (Inactive) | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | collector-298ba4e7 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Location: https://docs.mongodb.com/manual/reference/operator/aggregation/and/#exp._S_and |
||
| Participants: | |
| Days since reply: | 7 years, 35 weeks, 2 days ago |
| Description |
|
The value: { $and: [ [ null ], [ false ], [ 0 ] ] } true |
| Comments |
| Comment by Ravind Kumar (Inactive) [ 13/Jun/16 ] | ||
|
Hello, As stated in the documentation,
From the example:
The three values within the $and array are arrays themselves. While the content of each array would normally evaluate as false, $and evaluates the array itself and not the contents of the array. $and evaluates arrays as true. Therefore, the example can also be read as
I hope this answers your question. |