all

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

Returns `true` if all the inputs are `true`, `false` otherwise.

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

Example usage:


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

Return

expression

Parameters

input

expression input

See also

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