Length of an Array

Hi! I hope this question wasn’t asked before. I couldn’t find anything using the search bar. Is there an easy way to determine the length of an array? I’d like to use the length in an artifact. Therefore, I can’t use the length() feature of the format query language.

1 Like

Do you have an example of how you are wanting to use it?

I figured it out by myself :slight_smile: I was searching for the $length feature:

{{$length ([“step_name”].[variable])}}

2 Likes

I know this is almost 3 years old, but I was wondering where you found this at. I had the same question and found this but knowing where you found the answer might help others in the future figure other similar questions out. :slight_smile: thanks!

In a new tradition of this tread, I found it on my own while looking for something else:
https://docs.rapid7.com/insightconnect/format-strings-with-templates/