# Drawstep engine · Conditions · `controls` > Controls — e.g. “you control a permanent”. 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#controls ## Where it goes A condition: `{ "kind": "controls", … }` — 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`. Printed words that point here (search aliases): if you control. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `who` | `"you" \| "controller" \| "abilityController" \| "sourceController" \| "owner" \| "eachOpponent" \| "eachPlayer" \| "target" \| "triggeringPlayer" \| "defendingPlayer" \| "attackingPlayer" \| "activePlayer" \| "re …` | no | Which player(s) — a player selector (default `you`) | | `filter` | `ObjectFilter` | no | Which objects (ObjectFilter; set fields AND together) | | `min` | `number` | no | Minimum number of selections / required amount | ## Minimal form ```json {"kind":"controls"} ``` The engine reads that minimal form as: “you control a permanent”. ## Stock examples - **Lukamina, Moon Druid** — “Wild Shape — Specialize {3}. Activate only if you control six or more lands.” ```json {"kind":"controls","who":"you","filter":{"types":["Land"]},"min":6} ``` - **Snuff Out** — “” ```json {"kind":"controls","filter":{"subtypes":["Swamp"]}} ``` - **Vampire Guard** — “” ```json {"kind":"controls","who":"you","filter":{"subtypes":["Vampire"]},"min":1} ``` ## Related - [Conditions](https://drawstep.xyz/wiki/mtg/conditions.md) — the whole topic - [Filters & targets](https://drawstep.xyz/wiki/mtg/targets.md) — how `target` / `filter` select objects and players (selection algebra) - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive