# `Lightning.BuildMacros`
[🔗](https://github.com/OpenFn/lightning/blob/main/lib/lightning/build_macros.ex#L1)

Macros for building Lightning.

# `do_in`
*macro* 

```elixir
@spec do_in([atom()] | atom(), [{:do, Macro.t()}]) :: Macro.t()
```

Conditionally evaluates the block if the current environment is in the
given list of environments.

## Examples

    do_in(:dev) do
      IO.puts("This will only be printed in the dev environment")
    end

    do_in([:dev, :test]) do
      IO.puts("This will only be printed in the dev and test environments")
    end

---

*Consult [api-reference.md](api-reference.md) for complete listing*
