or( )


Adds an or condition to the query or filter.

The or() function adds an inclusive or condition to a WixDataQuery or WixDataFilter. A query or filter with an or returns all the items that match the query or filter as defined up to the or function, the items that match the query or 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
queryWixDataQueryRequired

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

Returns
Return Type:WixDataQuery
Was this helpful?
Yes
No