Help with parent template

I’m setting boolean true value in a parent template helper. Then I’m hoping to show two other child templates based on the conditional true. I’m getting an Error: No such template: else in my console and no template renders.

this is what the template code looks like:

					<div id="sectionLD" class="tab-pane fade in active">
							{{#if isEdit}}
								{{>leagueDetailsEdit}}
								{{#else}}
									{{>leagueDetails}}
								{{/else}}
							{{/if}}
						</div>

not sure why this isn’t working or if this is the right way to do this. I can verify that conditional is set to true. Any help would be deeply appreciated, Im a complete noob to javascript programming.

It should look like this:

{{#if condition}}
   stuff
{{else}}
  other stuff
{{/if}}

So you were close, but the else syntax wasn’t quite right.

Thanks @sashko that worked! Really appreciate it.