eq
Returns true if the input values are 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(
eq(get("keyToValue"), get("keyToOtherValue"))
);
Return
expression
Parameters
the first expression
the second expression
See also
Returns true if the input values are 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(
eq(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(
eq(get("keyToValue"), true)
);
Return
expression
Parameters
the first expression
the second boolean
See also
Returns true if the input values are equal, false otherwise.
Example usage:
FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setFilter(
eq(get("keyToValue"), "value")
);
Return
expression
Parameters
the first expression
the second number
See also
Returns true if the input values are 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(
eq(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 equal, false otherwise.
Example usage:
FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setFilter(
eq(get("keyToValue"), 2.0f)
);
Return
expression
Parameters
the first expression
the second number