checkAny

suspend fun FF4k.checkAny(vararg featureIds: String, executionContext: FlippingExecutionContext? = null): Boolean(source)

Check if any feature in the list is enabled.

Returns true if at least one of the specified features is enabled. Useful for OR-style feature gating where any of several flags enables functionality.

Example:

if (ff4k.checkAny("feature1", "feature2", "feature3")) {
// At least one feature is enabled
showFeatureSection()
}

// With execution context
if (ff4k.checkAny("admin", "moderator", "power-user", executionContext = context)) {
showModeratorTools()
}

Return

true if any feature is enabled, false if all are disabled

Parameters

featureIds

the unique identifiers of the features to check

executionContext

optional explicit context for strategy evaluation