Hi,
I am creating an Array list and populating it from an API call.
I use the Get Array List and output the values to verify it’s populated; however, when I use Array List Contains to check for a matching value, I get false even though it shows in the Get Array List.
What am I doing wrong?
Thanks,
Ray
You search for a number…
Try StoreSN.contains(“number here”)
If this works just pass the value.toString()
StoreSN.contains(valueToCheck.toString)
Thanks for your reply. That still does not return a ‘true’.


Ray
let’s forget arraylist.contain…
use .where on your arraylist:
get_stored_SN-list.where('yourFieldHere', '==', 'yourValueHere').count()
If this returns 0 is false , if >=1 then true
I hope it works
**Don’t forget to convert values (toNumber()
or toString()
) if needed