Operator with conditional value
I have an attribute named order_status with 4 possible values: cancelled, pending, processing and processed
and I would like to generate a new attribute named 'label'
with this condition:
if (order_status = 'cancelled' or 'pending')
value = 'purchased'
value = 'not purchased'
Any advice will be appreciate
I am not sure what operator to use and how to implement this condition