Test if the collection count is > 1

I did a template helper who count the items in my collection, the I want to do the following code

<span class="badge bg-green">{{numberOfAlertes}}
                                      {{#if numberOfAlertes > 1}}

But I have an error with the test numberOfAlertes > 1 someone could help me to do what I want to do ?

I needed to do {{#if numberOfAlertes '> 1'}}

You are not supposed to do calculation in blaze, this is not JSX.
Create an helper in js in template.helpers like isGreaterThanOne and do if isGreaterThanOne in your template.

Yes I made it after and forgot to update here but you’re right !