# Drawstep engine · Effects · `repeat` > Repeat — CR 608.2c, 608.2h: evaluate amount once, then perform effects in order that many times. Negative counts perform no instructions. Choices within effects occur on each iteration. Engine: Magic: The Gathering (`mtg`). This is one primitive of the Drawstep card vocabulary; field names and the discriminator are exact. Wiki page: https://drawstep.xyz/wiki/mtg/effects#repeat ## Where it goes One step of an ability's `effects[]` (a spell's, a trigger's, an activated ability's, a mode's): `{ "effect": "repeat", … }`. Steps resolve in order. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `amount` | `ValueDef` | no | How many / how much (integer or ValueDef) | | `from` | `ValueDef` | no | Inclusive start; amount is the inclusive end (CR 608.2c) | | `index` | `string` | no | Locally bound index variable for each number (CR 107.1) | | `effects` | `EffectDef[]` | yes | The effects, resolved in order (EffectDef[]) | | `process` | `boolean` | no | CR 608.2c: "repeat this process" — run effects again after each pass in which a nested repeatProcess executed. Inside a pass, "this way" (doneThisWay, thisWay) reads only that pass's actions ("If an Insect card was milled this way, … repeat this process") | | `cumulative` | `boolean` | no | With process: "this way" spans every pass so far, not only the current one (CR 608.2c: "unless it has the same name as another card exiled this way", Tainted Pact) | ## Minimal form ```json {"effect":"repeat","effects":[]} ``` The engine reads that minimal form as: “ ? times”. ## Stock examples - **Iter29 Proliferation** — “Proliferate twice.” ```json {"effect":"repeat","amount":2,"effects":[{"effect":"proliferate"}]} ``` - **Repeat Counters** — “Proliferate X times.” ```json {"effect":"repeat","amount":{"kind":"var","name":"X"},"effects":[{"effect":"proliferate"}]} ``` - **Iter29 Repeat** — “For each creature you control, you gain 2 life.” ```json {"effect":"repeat","amount":{"kind":"count","filter":{"types":["Creature"],"controller":"you"}},"effects":[{"effect":"gainLife","who":"you","amount":2}]} ``` ## Related - [Effects](https://drawstep.xyz/wiki/mtg/effects.md) — the whole topic - [Values](https://drawstep.xyz/wiki/mtg/values.md) — every number kind an `amount` accepts - [Effects](https://drawstep.xyz/wiki/mtg/effects.md) — the steps a nested `effects` / `then` list may contain - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive