# Nested block helpers

**URL:** https://forums.losant.com/t/nested-block-helpers/2203
**Category:** Help
**Tags:** experience
**Created:** [September 23, 2019, 2:08pm UTC](https://forums.losant.com/t/nested-block-helpers/2203 "2019-09-23T14:08:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![paul\_wareham](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@paul\_wareham](https://forums.losant.com/u/paul_wareham)
#### Post date: [September 23, 2019, 2:08pm UTC](https://forums.losant.com/t/nested-block-helpers/2203/1 "2019-09-23T14:08:19Z")

</div>

Is possible to nest block helpers such as {{#eq}}? I’d like to test for equality and if its false to again test for equality within the else section. The equivalent to an elseif.

If that is possible what is the syntax?

---

<div class="post-metadata">

### Author: ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)
#### Post date: [September 23, 2019, 2:39pm UTC](https://forums.losant.com/t/nested-block-helpers/2203/3 "2019-09-23T14:39:00Z")

</div>

Hi @paul_wareham,

I do believe that this can be achieved 🙂 there is a good [forum post here](https://forums.losant.com/t/solved-trying-to-understand-how-to-set-a-different-icon-for-each-device-on-gps-map-using-handlerbars/396/2) with an example of nesting with an #if and #eq. Since the #else isn’t shown, there is also a small example in the top paragraph of the if/else as well as a subexpression that you may find useful.

Thanks!  
Julia
