# Comparison-conditional 'if''s in template loop

**URL:** <https://discuss.emberjs.com/t/comparison-conditional-ifs-in-template-loop/4857>\
**Category:** Proposals\
**Created:** [April 13, 2014, 1:43am UTC](https://discuss.emberjs.com/t/comparison-conditional-ifs-in-template-loop/4857 "2014-04-13T01:43:39Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![nullsteph](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/nullsteph/32/15666_2.png) [@nullsteph](https://discuss.emberjs.com/u/nullsteph)\
**Post date:** [April 13, 2014, 2:59am UTC](https://discuss.emberjs.com/t/comparison-conditional-ifs-in-template-loop/4857/3 "2014-04-13T02:59:34Z")

</div>

I did try that route, but because you can only pass in literals and not values, it didn’t help me. If the {{#blocks}} would resolve the model values, I could do…

{{#myhelper model.type}}// resolve to ‘select’

…and test the string value in the helper to build out the correct HTML. Ah, but then I run into problems returning bound expressions like so…

{{input type=model.type}}{{action ‘myAction’}}

It may be an issue of design and a separation of concerns, in which case I’ll defer to the experts, but I can’t help questioning the utility of that logic in cases like this.

---

_[View the full topic](https://discuss.emberjs.com/t/comparison-conditional-ifs-in-template-loop/4857)._
