Set location for inventory Items

I'm trying to set the line item location on a Netsuite.SalesOrder for inventory items only. I keep getting an error with the following:

{{if OrderItems[*].Product_Family__c}}{{#compare OrderItems[*].Product_Family__c "==" "Hardware"}} Contract_Manufacturer__c {{else}}" "{{/compare}}{{/if}}

The Contract_Manufacturer__c field should set the location