Hi all,
I have a list and the count of this list is 15 once i try to use count isn't return 15 it returns 1 also I tried to use a!flatten but the same issues
any advice ?
Discussion posts and replies are publicly visible
What code are you using to achieve this result?
Please share your complete code where you are evaluating the count aswell
a!flatten works for me.
count(a!flatten(local!stored.parameters.IO_CURSOR))
count() or length() could both be used here.
Use length() function this should work.
Sorry , Len() is for a finding number of characters in a text, It's not used for list
My bad.
You're right and wrong. len() finds character length of a string. But your original suggestion, length(), does find the length of an array, excluding null entries. count() finds the length including nulls.
But in the case here, my main suspicion is that OP doesn't know how to parse his dicitonary result to call length() / count() on the correct thing, and isn't sharing very detailed code, meaning others here trying to help him are having a hard time.
He changed the answer from len() to length()
venkat Avuluri said:changed the answer from len() to length()
oh i see - sorry, i didn't pick up on this context (and there's no real way to see whether content here has been edited, sadly enough).
Please check the difference.