gt
Returns true if the first input is strictly greater than the second, false otherwise. The inputs must be numbers or strings, and both of the same type.
Example usage:
FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setFilter(
gt(get("keyToValue"), get("keyToOtherValue"))
);
Return
expression
Parameters
the first expression
the second expression
See also
Returns true if the first input is strictly greater than the second, false otherwise. The inputs must be numbers or strings, and both of the same type.
Example usage:
FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setFilter(
gt(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 first input is strictly greater than the second, false otherwise.
Example usage:
FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setFilter(
gt(get("keyToValue"), 2.0f)
);
Return
expression
Parameters
the first expression
the second number
See also
Returns true if the first input is strictly greater than the second, false otherwise.
Example usage:
FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setFilter(
gt(get("keyToValue"), "value")
);
Return
expression
Parameters
the first expression
the second string
See also
Returns true if the first input is strictly greater than the second, false otherwise. The inputs must be numbers or strings, and both of the same type.
Example usage:
FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setFilter(
gt(get("keyToValue"), get("keyToOtherValue"), collator(true, false))
);
Return
expression
Parameters
the first expression
the second String
the collator expression