Hi,
So I am trying to make a function that loops through an array of items and returns 1 if any of the items in the array are on a line on the sales order, and returns 0 if all of the items are not on any line on the sales order. For some reason, it is always returning 1, regardless of whether or not the items are on the sales order or not. Here is a snapshot of the code:
Does anyone see the flaw in my logic?