# Drawstep engine · Conditions · `castOrdinal` > Cast ordinal — CR 601.2i: this was your Nth actual spell cast this turn (optionally creature spells only). 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/conditions#castOrdinal ## Where it goes A condition: `{ "kind": "castOrdinal", … }` — in an `if` effect, a trigger's `condition` (intervening if), a static's `condition` ("as long as"), an activated ability's `onlyIf`, a replacement's `unless`. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `ordinal` | `number` | yes | Which occurrence (1 = first, 2 = second …) | | `creatureOnly` | `boolean` | no | Count only creature spells | ## Minimal form ```json {"kind":"castOrdinal","ordinal":1} ``` The engine reads that minimal form as: “this is the first spell you've cast this turn”. ## Stock examples - **Second Spell** — “If this is the second spell you've cast this turn, draw a card.” ```json {"kind":"castOrdinal","ordinal":2} ``` - **First Creature** — “When this creature enters, if it's the first creature spell you've cast this turn, draw a card.” ```json {"kind":"castOrdinal","ordinal":1,"creatureOnly":true} ``` ## Related - [Conditions](https://drawstep.xyz/wiki/mtg/conditions.md) — the whole topic - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive