When creating a workflow, it can sometimes be required to create a custom line of code. In this article, I will try to clarify which types of indicators or keywords you will need to construct your sentence of code.
All workflows have a trigger + condition + action. However, sometimes the condition is part of the action section of the workflow. Like here:
In this case, it is a blank box where you have to add your code in free text, to make the action work as intended.
The free text is, however, limited by keywords. In the table below the available/possible keywords are listed for your clarification.
Keywords | Examples |
like |
|
in |
|
= |
|
!= |
|
and |
|
or |
|
The examples cover SKU and Description but can also be of anything else you may need. In fact, all order data can be altered within a custom workflow.
like : is when a single value is identical to something.
in : is similar to 'like' but allows for multiple values.
= : is the equals symbol; therefore the value must be identical to the value.
!= : is when something is NOT EQUALS to a given value.
And or Or can be used to combine multiple sentences/codes with each other.