Display custom condition results as string in workflows

In workflows I need to build an alert to execute this script which does a countIf of two parameters and then trigger an alert if both counts are higher than a hardcoded threshold. The results are showing as below as type long, but the actual value appears to be a string.

As an example of just trying to get a second trigger to run I have a custom condition of:

{{result(“execute_query”)[“records”][0][“count_process”]>0}}

Which bring back an error saying the given results are of type string while I’m trying to do an int operator.

Any suggestions of what I am doing wrong here, in the custom conditions, the DQL, or another setting to get the output to be properly as a long/int?

Hey @loopy ,

I just wanted to check in and see if you still need help with this. If so, I’d be happy to look into it for you! :blush:
Please let me know what works best for you.

Hi @IzabelaRokita ,

No solution has been found yet so I had to impliment a work around. If you are able to look into this, much appreciated.