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
) -> StopConditionDefined in Sources/AI/Core/StepControl.swift.
Parameters
| Parameter | Type | Default |
|---|---|---|
_ | Int | required |
Returns
A StopCondition.