Hi all,
I would like to compare variable in .hbs
I try with below code but not work:
variable: getType
string: testtype
{{#if getType == 'testtype'}} ... {{/if}}
How do I do?
Sugar 7.6 Ent
Thanks,
M
Hi all,
I would like to compare variable in .hbs
I try with below code but not work:
variable: getType
string: testtype
{{#if getType == 'testtype'}} ... {{/if}}
How do I do?
Sugar 7.6 Ent
Thanks,
M
I found solution.
see example in /var/www/sugarcrm/clients/base/views/interactionschart/interactionschart.hbs
{{#eq getType "testtype"}} ... {{/eq}}
M