not( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Adds a not condition to the search filter.

The not() method adds a not condition to the search filter. A search with a not returns all the items that match the filter as defined up to the not() method and don't match the filter passed to the not() method.

If the search filter only contains a not() method, it returns all the items that don't match the filter specified to the method.

Method Declaration
Copy
Method Parameters
filterWixDataFilterRequired

Filter to add to the initial filter as a not condition.

Returns
Return Type:WixDataSearch
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?