# IF: Adding Conditional Expressions to a Tiny Interpreter in Elm

**URL:** <https://discourse.elm-lang.org/t/if-adding-conditional-expressions-to-a-tiny-interpreter-in-elm/10894>\
**Category:** Show and Tell\
**Created:** [August 28, 2026, 10:03am UTC](https://discourse.elm-lang.org/t/if-adding-conditional-expressions-to-a-tiny-interpreter-in-elm/10894 "2026-08-28T10:03:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dwayne](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/dwayne/32/5478_2.png) [@dwayne](https://discourse.elm-lang.org/u/dwayne)\
**Post date:** [August 28, 2026, 10:03am UTC](https://discourse.elm-lang.org/t/if-adding-conditional-expressions-to-a-tiny-interpreter-in-elm/10894/1 "2026-08-28T10:03:18Z")

</div>

ZERO gave our interpreter Boolean values. IF finally gives us something useful to do with them.

> **[IF: Adding Conditional Expressions to a Tiny Interpreter in Elm | Tiny...](https://blog.tinyinterpreters.dev/posts/if/)**
>
> Add conditional expressions to a tiny Elm interpreter and see how Boolean conditions introduce control flow by selecting which branch gets evaluated.

---

<div class="post-metadata">

**Author:** ![dwayne](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/dwayne/32/5478_2.png) [@dwayne](https://discourse.elm-lang.org/u/dwayne)\
**Post date:** [September 4, 2026, 6:15pm UTC](https://discourse.elm-lang.org/t/if-adding-conditional-expressions-to-a-tiny-interpreter-in-elm/10894/2 "2026-09-04T18:15:53Z")

</div>

I also worked on a little stepper for IF which you can try [here](https://github.com/tinyinterpreters/if/tree/stepper).

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/elm_lang/original/1X/50a05e53677a2c3b47776d7abd0f113eb50193a1.png) [@system](https://discourse.elm-lang.org/u/system)\
**Post date:** [September 14, 2026, 6:16pm UTC](https://discourse.elm-lang.org/t/if-adding-conditional-expressions-to-a-tiny-interpreter-in-elm/10894/3 "2026-09-14T18:16:34Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
