The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Operator with conditional value
Hi,
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'
THEN
value = 'not purchased'
Any advice will be appreciate
I am not sure what operator to use and how to implement this condition
Thank you
0
Answers
Use the 'generate attributes' operator with a suitable if then else. You're very close with your example.
Regards,
Andrew
Thanks!
Done with the Operator Generate Attribute:
if(matches(order_status, "processing") || matches(order_status, "processed"), "COMPRADO", "NO COMPRADO")
Now, how can hide/delete the order_status attribute?
Thank you
'Select Attributess' with the single attribute setting, 'order_status' and 'invert selection' ticked should get rid of it.
Regards,
Russ