How to compare variable with string in smarty(.hbs)

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