AnsweredAssumed Answered

How to define a if else statement in hbs

Question asked by Jin Soo on Jan 30, 2015
Latest reply on Feb 2, 2015 by Jin Soo

I'm quite new in the sugar development (and in smarty). I can't figure out how to make a if else statement in a dashlet-config.hbs.

{{#eq "sql"}}
                <textarea size="200" rows="20" id="sql" name="sql" style="width:400px;" value=""></textarea>
{{field ../this model=../this.settings template=../this.action}}

works an renders. Every try to get an ELSE oder NOTEQ Statement fails to render.

Would be nice if somebody has a link to a manual or a solution.