# Drawstep engine · Conditions · `all` > All — Every condition holds ("if X and Y"). 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#all ## Where it goes A condition: `{ "kind": "all", … }` — 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 | |---|---|---|---| | `conditions` | `ConditionDef[]` | yes | The conditions combined | ## Minimal form ```json {"kind":"all","conditions":[]} ``` ## Stock examples - **Dream Prowler** — “This creature can't be blocked as long as it's attacking alone.” ```json {"kind":"all","conditions":[{"kind":"sourceAttacking"},{"kind":"compare","a":{"kind":"count","filter":{"types":["Creature"],"attacking":true}},"op":"==","b":1}]} ``` - **Before Attackers Mana Study** — “{T}: Add {G}. Activate only during your turn, before attackers are declared.” ```json {"kind":"all","conditions":[{"kind":"isYourTurn"},{"kind":"phase","is":"beforeAttackers"}]} ``` - **Before Attackers Study** — “{0}: Draw a card. Activate only during your turn, before attackers are declared.” ```json {"kind":"all","conditions":[{"kind":"isYourTurn"},{"kind":"phase","is":"beforeAttackers"}]} ``` ## 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