Got it! ``` filters:[ ["parent", <http://sear...
# suitescript
j
Got it!
Copy code
filters:[
    ["parent", <http://search.Operator.IS|search.Operator.IS>, parentId],
    "and",
    ["internalidnumber", search.Operator.NOTEQUALTO, parentId],
]
👍 1
i
Just a small suggestion, always use "anyof" for id fields.
j
Thanks - why is that?
d
don't filters AND by default?
j
@dbaghdanov Do you mean to say I could lose the "and" above?
d
@james_lloyd yes, i believe so.
i
@james_lloyd the "is" operator, as defined in the NetSuite api should be used for text fields, meaning, that you can not predict it's behaviour in different scenarions. Also, although not relevant to this case, you might want one day to change a select field to be multiselect or, to to look for more than one value. With "anyof" operator, the code won't break and no changes will be required.