any

open fun any(@NonNull input: Array<Expression>): Expression

Returns `true` if any of the inputs are `true`, `false` otherwise.

The inputs are evaluated in order, and evaluation is short-circuiting: once an input expression evaluates to `true`, the result is `true` and no further input expressions are evaluated.

Example usage:


FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setFilter(
    any(get("keyToValue"), get("keyToOtherValue"))
);

Return

expression

Parameters

input

expression input

See also

<a href="https://maplibre.org/maplibre-style-spec/expressions/#any">Style specification</a>