So if you step through the statement I wrote, it f...
# suitescript
e
So if you step through the statement I wrote, it first checks `itemAvailable > 0`; if that's
true
, it will move on to `(itemAvgCost || itemLastPurchasePrice)`; it will try to use
itemAvgCost
first, but if that's not there, it will fallback to
itemLastPurchasePrice
.