The default "if" that you have used only checks if the value is true/set or false/empty. If you want comparison logic, you can write your own "equals" helper, for example: eg:
Handlebars.registerHelper('equals', function (a, b, opts) {
if (a === b)
return opts.fn(this);
else
return opts.inverse(this);
});
You can then use this helper in your code like:
{{#equals name 'Management Review'}}
Follow this documentation on how to create custom HandleBars helpers in the code : https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_9.2/User_Interface/Handlebars/#Creating_Helpers
The default "if" that you have used only checks if the value is true/set or false/empty. If you want comparison logic, you can write your own "equals" helper, for example: eg:
Handlebars.registerHelper('equals', function (a, b, opts) {
if (a === b)
return opts.fn(this);
else
return opts.inverse(this);
});
You can then use this helper in your code like:
{{#equals name 'Management Review'}}
Follow this documentation on how to create custom HandleBars helpers in the code : https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_9.2/User_Interface/Handlebars/#Creating_Helpers