isStepCount

Stop on an exact step number.

Fires when the loop reaches exactly this step, where stepCountIs fires at or past it. Use it when you are composing conditions and need equality rather than a ceiling.

stopWhen: [isStepCount(3)]

Signature

func isStepCount(
    _ count: Int
) -> StopCondition

Defined in Sources/AI/Core/StepControl.swift.

Parameters

ParameterTypeDefault
_Intrequired

Returns

A StopCondition.

See also