Hi Patrina!
There are a few syntax issues that may also be giving you some issues:
- When doing equals syntax you must use a single variable and not a listing. Also, with the equals syntax, you would not wrap your variables in brackets. Your logic would change based off the below examples:
From this:
condition(equals(SHIPTO_CUSTOMER_NAME,[“WAL MART HVDC 7024”,“WAL MART HVDC 7055”,“WAL MART HVDC 6059”,“WAL MART HVDC 6047”,“WAL MART HVDC 7047”])
To this:
condition(in(SHIPTO_CUSTOMER_NAME,[“WAL MART HVDC 7024”,“WAL MART HVDC 7055”,“WAL MART HVDC 6059”,“WAL MART HVDC 6047”,“WAL MART HVDC 7047”])
- Since you are looking for specific WAL MART scenarios based on two additional fields, I would run something like the below. This gives you a little more flexibility and allows you to have more than two results:
condition(and(in(SHIPTO_CUSTOMER_NAME,["WAL MART HVDC 7024","WAL MART HVDC 7055","WAL MART HVDC 6059","WAL MART HVDC 6047","WAL MART HVDC 7047"]),equals(Late_Arrival,"On Time"),equals(LIVES_DROPS,"LIVE")),1,condition(and(in(SHIPTO_CUSTOMER_NAME,["WAL MART HVDC 7024","WAL MART HVDC 7055","WAL MART HVDC 6059","WAL MART HVDC 6047","WAL MART HVDC 7047"]),equals(Late_Arrival,"Late"),equals(LIVES_DROPS,"LIVE")),1.5,condition(and(in(SHIPTO_CUSTOMER_NAME,["WAL MART HVDC 7024","WAL MART HVDC 7055","WAL MART HVDC 6059","WAL MART HVDC 6047","WAL MART HVDC 7047"]),equals(Late_Arrival,"On Time"),equals(LIVES_DROPS,"DROP")),1.2,condition(and(in(SHIPTO_CUSTOMER_NAME,["WAL MART HVDC 7024","WAL MART HVDC 7055","WAL MART HVDC 6059","WAL MART HVDC 6047","WAL MART HVDC 7047"]),equals(Late_Arrival,"Late"),equals(LIVES_DROPS,"DROP")),2,0))))
I’m hoping this helps and gets you closer to what you are trying to achieve. Please feel free to reach out if you have any more questions!!