# Conditional code based on config

**URL:** <https://forum.elixirforum.com/t/conditional-code-based-on-config/31955>\
**Category:** Questions\
**Tags:** metaprogramming, compiling\
**Created:** [May 31, 2020, 12:01am UTC](https://forum.elixirforum.com/t/conditional-code-based-on-config/31955 "2020-05-31T00:01:34Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![tfwright](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/tfwright/32/20299_2.png) [@tfwright](https://forum.elixirforum.com/u/tfwright)\
**Post date:** [May 31, 2020, 7:17pm UTC](https://forum.elixirforum.com/t/conditional-code-based-on-config/31955/5 "2020-05-31T19:17:30Z")

</div>

> [@kip](#):
>
> What the result of `Application.get_env(:my_lib, :some_config)` is

`Elixir.MyApp.ConfigModule`

> [@kip](#):
>
> What the error return was

`unavailable`

---

_[View the full topic](https://forum.elixirforum.com/t/conditional-code-based-on-config/31955)._
