Multiple if else condition in blaze


#1

I want to use multiple if else condition, Can anyone suggest


#2
{{#if condition}}
<!-- stuff -->
{{else}}
<!-- other stuff-->
{{/if}}

{{#if condition}}
<!-- stuff -->
{{else}}
<!-- other stuff-->
{{/if}}

??

Edit: https://github.com/meteor/blaze/pull/50


#3

@jhuenges I never knew you could do that in spacebars! Thanks for finding that.
The Blaze docs are a bit behind if that was never added


#4

just to make sure you are checking the correct blaze doc, here it is:
http://blazejs.org/guide/spacebars.html#Block-Helpers


#5

I was interested in the {{elseif}} syntax addition (linked to by @jhuenges) - which is not in the Spacebars documentation.


#6

sorry, got it made. seems that this has been forgotten