neq
Returns true if the input values are not equal, false otherwise. The inputs must be numbers, strings, or booleans, and both of the same type.
Example usage:
FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setFilter(
neq(get("keyToValue"), get("keyToOtherValue"))
);
Return
expression
Parameters
the first expression
the second expression
See also
Returns true if the input values are not equal, false otherwise. The inputs must be numbers, strings, or booleans, and both of the same type.
Example usage:
FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setFilter(
neq(get("keyToValue"), get("keyToOtherValue"), collator(true, false))
);
Return
expression
Parameters
the first expression
the second expression
the collator expression
See also
Returns true if the input values are equal, false otherwise.
Example usage:
FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setFilter(
neq(get("keyToValue"), true)
);
Return
expression
Parameters
the first expression
the second boolean
See also
Returns `true` if the input values are not equal, `false` otherwise.
Example usage:
FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setFilter(
neq(get("keyToValue"), "value")
);
Return
expression
Parameters
the first expression
the second string
See also
Returns true if the input values are not equal, false otherwise. The inputs must be numbers, strings, or booleans, and both of the same type.
Example usage:
FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setFilter(
neq(get("keyToValue"), get("keyToOtherValue"), collator(true, false))
);
Return
expression
Parameters
the first expression
the second String
the collator expression
See also
Returns `true` if the input values are not equal, `false` otherwise.
Example usage:
FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setFilter(
neq(get("keyToValue"), 2.0f)
);
Return
expression
Parameters
the first expression
the second number