or( )


Adds an or condition to the filter.

The or() function adds an inclusive or condition to a WixDataFilter. A filter with an or returns all the items that match the filter as defined up to the or function, the items that match the filter passed to the or function, and the items that match both.

The collections used by both the initial query and the query passed to the or function must be the same.

The 'or()' function is designed to work with 2 or more queries or filters. If you use it on its own, it will return all the items in a collection.

Method Declaration
Copy
Method Parameters
filterWixDataFilterRequired

A filter to add to the initial query as an or condition.

Returns
Return Type:WixDataFilter
Did this help?