or( )


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 an or condition to the search filter.

The or() method adds an inclusive or condition to the search filter. The search returns all the items that match the filter as defined up to the or() method, the items that match the filter passed to the or() method, and the items that match both.

Note: The or() method requires 2 or more filters. Used on its own, it might produce unexpected results.

Method Declaration
Copy
Method Parameters
filterWixDataFilterRequired

Filter to add to the initial filter as an or 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?