Alarm counter by associated data

hello, I am trying to make a counter of active alarms filtering by associated data, I have this counter by folders.

runScript("system.alert.queryAlertStatus(" +
"activeAndAcked=" + toInt({Root Container.Alarms.activeAndAcked}) + "," +
"activeAndUnacked=" + toInt({Root Container.Alarms.activeAndUnacked}) + "," +
"clearAndAcked=" + toInt({Root Container.Alarms.clearAndAcked}) + "," +
"clearAndUnacked=" + toInt({Root Container.Alarms.clearAndUnacked}) + "," +
"path='---'" + ").rowCount", 1000)

in the alarm status table I filtered by group, I would like to be able to join the filter and the counter

group = alarmEvent.get("Group")
    if group == "Group A":
        return True
    return False

Thank you

Copy and paste the code, we can't see anything here.
And make sure to enclose it in triple backquotes so that it's interpreted as code and keeps its formatting.

```
code
```

That said, what version of ignition are you using ?

I recommend you explain what you are ultimately trying to do. If you are just wanting a count of alarms for a specific path, that is relatively easy and there are many posts on this forum already about it.

I would like to be able to unite the filter and the counter.

I already updated it and I’m using version 7.8

That’s an old and, I believe, unsupported version. I have no idea what’s possible or not in 7.8…