Hi Dakshika / Jerad,

I am trying to retrieve the tenantId stored in a session variable into
handlebars js file. The variable "teananID" has the value of the tenant id
(Ex: -1234) but when comparing it with -1234 or any other integer the
condition is always false.

Please find the piece of code in my handlebar js file below.

{{#ifCond tenantID "==" -1234}}
       <p>Test1</p>
{{else}}
       <p>Test2</p>
{{/ifCond}}


Please note that I have tried printing the variable using console.log and
it gave the value -1234. And also we can compare two strings using the same
way without any issue.

What could be the missing part in the condition to always become false?

Thanks.
-- 
*Dinithi De Silva*
Associate Software Engineer, WSO2 Inc.
m:+94716667655 | e:[email protected] | w: www.wso2.com
| a: #20, Palm Grove, Colombo 03
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to