Several Automation Tasks have an Expression fields. The expression is evaluated by Shipper and the result is assigned. For example, the Assign Package Weight task includes an Expression field for weight. Shipper will evaluate the expression and assign the result to the Package Weight field.
Expressions fields work very much like an Excel Spreadsheet cells:
- If you put an equal sign (=) or a plus sign (+) as the first character of the expression, Shipper will treat the field as an equation. You can reference other Order or Package fields in the expression by using their field names. For example,
Sample Result =2+3 5 +2*3 6 ="Order #" + OrderNumber Order #12345 ="Hello " + Customer.FirstName + "," Hello Charles, Example
- If you surround field names with square brackets ([ and ]), Shipper will treat the expression as a mail merge. For example,
Sample Result Order #[OrderNumber] Order #12345 Hello [Customer.FirstName], Hello Charles, Example
- If you do neither of the above, then Shipper will treat the expression literally. For example,
Sample Result 5 5 2*3 2*3 Thank you for your business! Thank you for your business! Example


