eq( )


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 equals the specified value.

The eq() method refines this filter to only match items where the value of the specified field equals the specified value.

Values of different types are always considered not equal. For example, a number value stored as a string does not match the same number stored as a number.

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

If field points to a collection field of type array, eq() includes the item as long as at least one array element matches the specified value.

Method Declaration
Copy
Method Parameters
fieldstringRequired

Field whose value is compared with value.


valueanyRequired

Value to compare with.

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?