Meant to post this in Help
If i have a template (called result), a function (called neww), and a number (called number and randomly generated from 0-1), how would I create a boolean inside a helper that returned a true or false value based on if number was greater than 0.5 or not? I have:
Template.result.helpers({
‘neww’: function(){
return number > 0.5
}
});
But that always returns false.
Any answers would be appreciated, thanks.