not( )

Adds a not condition to the query or filter.

The not() function adds a not condition to a WixDataQuery or WixDataFilter. A query or filter with a not returns all the items that match the query or filter as defined up to the not function, but don't match the query or filter passed to the not function.

If the query or filter only contains a not() function, it returns all the items that don't match the query defined by the not method.

The collections referenced by both the initial query and the query passed to the not function must be the same.

Method Declaration
Copy
Method Parameters
queryWixDataQueryRequired

A query to add to the initial query as a not condition.

Returns
Return Type:WixDataQuery
Was this helpful?
Yes
No