# Drawstep engine · Costs · `oneOf` > One of — Announce one alternative payment for this cost (CR 118.9, 601.2b). Use this field alone; each branch is a complete cost. 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/costs#oneOf ## Where it goes One part of a `cost` object (an activated ability's cost, `mayPay`, `unlessPays`, an `additionalCost`): `{ "oneOf": … }`; parts combine freely. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `oneOf` | `CostDef[]` | no | Announce one alternative payment for this cost (CR 118.9, 601.2b). Use this field alone; each branch is a complete cost | ## Stock examples - **Either Offering** — “” ```json {"oneOf":[{"sacrifice":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}}},{"discard":1}]} ``` - **Alternative Payment Study** — “As an additional cost to cast this spell, discard a card or pay {5}.” ```json {"oneOf":[{"discard":1},{"mana":"{5}"}]} ``` - **Heartwood Shard** — “{3}, {T} or {G}, {T}: Target creature gains trample until end of turn.” ```json {"oneOf":[{"mana":"{3}","tapSelf":true},{"mana":"{G}","tapSelf":true}]} ``` ## Related - [Costs](https://drawstep.xyz/wiki/mtg/costs.md) — the whole topic - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive