i want to lookup a value and I get this *{"referen...
# suitescript
v
i want to lookup a value and I get this
Copy code
{
  "reference": []
}
i need to include an if condition on this like if it is empty. how can i do this? i tried with null and undefined, but no use. Could anyone please help?
n
reference.length < 1
so checking if the array is empty
r
See my comment above as well. Show code. It's not clear if you're unsure how to check the length of an array, or unsure how to interact with an object.
v
thank you so much, its is done