Skip to content
Discussion options

You must be logged in to vote

I believe contact, person, and person2 are correct YAML. The = equality operator does not check if a YAML collection (what you called a multi-value attribute) contains a value. To check if a YAML collection contains exactly a value use the dataview function econtains (this used to be called just contains)

```dataview
list
where econtains(contact, "Fred")
```

The docs still call econtains by its old name contains but they still accurately describe the function. (contains in the latest release does something slightly different)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@macdrifter
Comment options

Answer selected by M-bot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants