ne( )


Developer Preview

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

Refines a filter to match items where the value of the specified field does not equal the specified value.

The ne() method refines this filter to only match items where the value of the specified field does not equal the specified value.

The method only matches values of the same data type. For example, a number value stored as a string is considered not equal to the same number stored as a number.

Matching strings with ne() is case sensitive, so "text" is considered not equal to "Text".

If the value of field is an array, ne() matches items where none of the elements of the array match the specified value.

Method Declaration
Copy
Method Parameters
fieldstringRequired

Field whose value is compared with value.


valueanyRequired

Value to match.

Returns
Return Type:WixDataFilter
Errors

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

Did this help?