Skip to main content

Skip While

Skips events while the given KelpQL expression predicate is truthy.

component image

In-ports

input <any> — input events.

config JSON (dynamic) — accepts a JSON object with configuration properties that can be set at runtime.

Out-ports

output <any> — output events.

Overview

The Skip While operator skips events on the input port while the given KelpQL expression predicate applied to incoming events is truthy. Afterward, the operator stops applying the predicate and emits all new incoming events on the output port.

By default, the predicate expression is @ , which means any event will be matched and therefore skipped.

Example 1

The Skip While operator applied to a stream of integer values with the expression @ < 3 to skip first two events.

skip while example 1

Settings

Enable realtime config port

If this setting is enabled, the component can be configured through the config port. This port accepts a configuration object as input and allows you to set dynamic properties at runtime. Note that using this port does not cause the component to reinitialize, but it may cause some previous state of the component to be lost.

Expression (expr)

KelpQL expression that will be used as a predicate. Default expression is @.

Type: String
Default: @
Required: Yes