do we have anything like isexists funcrion in suit...
# suitescript
v
do we have anything like isexists funcrion in suitescript?
e
Do a
search.lookupFields
. If it doesn't error it exists
v
no its for comparing two lists.
now i am using two for loops.
e
need more context, what are you checking for existence?
this 2
r
Exist where ? Array, object, or some record. you can just use array.indexof(whatever you want to check in the main array). One line of statement should tell you if it exist or not.