What is EVAL Function Means, How and Where It Can Be Used?

Understanding the EVAL function in StoreAutomator

In this article, we will explain the intricacies of the EVAL function in StoreAutomator. The EVAL function evaluates formulas for specific custom fields. StoreAutomator has 2 types of custom fields: 

  1. Standard Custom Fields

Standard Custom Fields can be used after values have been assigned for specific SKUs. If you add values, these attributes remain empty. 

You can learn more about how to create a standard custom field here: How to create a custom field

  1. Dynamic Custom Fields

May be used in formulas. You can use more than one source or you can combine standard custom field values as an output of the dynamic custom field. 

Example:

A. Standard Custom field’s value is X

B. Standard Custom field’s value is Y

C. Dynamic Custom Field output can be X, Y based on your formula. 

To use the EVAL Function, the prefix “eval:” into the Default Value bar of the relevant custom field. This signifies to StoreAutomator that a formula needs to be evaluated to produce the desired output. 

Follow these steps to use the EVAL function:

  1. Navigate to to Inventory> Custom Fields
  2. Use the search bar to find the custom field name
  3. Click Edit
  4. Enter eval: 
  5. Compose your formula. Refer to our syntax from guide here: 

Syntax

6- Click Save and Close.

Your formula will be evaluated for each SKU wherever you use this custom field in StoreAutomator. 

Was this article helpful?

0 out of 0 found this helpful