If you need equalize some value in html side then you can create a dedicated helper to check if a value is equal to a certain value.
as Meteor templating system you cannot directly check for an equality in a if statement. you can create a global helper with parameters to check for a string equality or matching string.
{{#if otherHelperToEqualateValue helperName.key}}
// your html code here
{{/if}}
Need some code in template.js
Template.activeOrders.helpers({ otherHelperToEqualateValue: function(value) { // you check your condition here and return true or false accordingly } }); THANKS
More From Oodles
Ready to innovate? Let's get in touch
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Balraj Singh
Balraj is a creative UI designer with experience and capabilities to build compelling UI designs for Web and Mobile Applications. Balraj likes playing tech Quiz and loves bike riding.