Conditional Logic enables the WP Data Sync API to manipulate your raw data based on a set of conditions.
Conditions are defined in Conditions UI. You can configure as many conditions as needed.
How does Conditional Logic Work?
Conditional Logic replaces a value with a different value based on the conditions applied. These conditions are applied to a data field based on the type of data, and the data source.
Conditional Logic Parameters
- If Value Equals
- Set Value
- Data Type
- Data Source Is
- Data Source Is Not
- Data Source
Conditional Logic Examples
If Value Equals | Set Value To |
Sleeper Sofa | Sofa |
M269 | Guitars |
PROVIDER | Provider |
q2321 | model-432 |
Conditional Logic – Data Types
Conditional logic data types are the type of data field WordPress or WooCommerce use on your remote website. You can choose to apply to all data types or restrict the condition to a specific data type.
Conditional Logic – Data Source
Conditions can be applied to all data source, if the data source is, or is not the data source.