Array lenght

Which function can i use to get the length of the array ? ( I want to know how many elements are inside the array )

let’s say, " name " is the key and there are 3 values of this key

Let me know if this works for you.

I have an array I want to see how many URL there are.

  1. Use map to only get the places in the Array where there is URL

  2. Used Key to get this into a numeric format.

  3. Used max to get the max number in the numeric format and use +1 because keys function starts count at 0

Let me know if this helps!

Also,
Instead of using map(), keys() then max(), you could probably just use the length() function after you’ve done the map().

map() creates the simple array, length() tells you how many elements in that array.

2 Likes

True. Produces the same out.

Hi @Automate_with_Rezwan

There is length() function in make.

Regards,
Msquare Automation - Gold Partner of Make

Free Consultation | Live Implementation

Visit us here | Youtube Channel

1 Like