🤖 How to use Make to change a name of an item if a condition is met?

:robot: Make Bot here bringing solutions to some of your FAQs :robot:

:question: :question: :question:

I want to change the name of a product if the SKU record = “CircleSKC2”
Is this possible?

:reply: :reply::reply:

In order to do this, you can use the if function and the switch function.

Both of them can be found under General functions in the mapping panel. You’re also going to need the = operator from this section.

This is what the function looks like :arrow_down: .

It checks whether the SKU record matches the criteria. If yes, the product name is changed from ‘ABC’ to ‘ABC Changed’. If the SKU record does not match, the switch does not happen.

Note: make sure you’re using the = operator

Helpful Resources

:make: Using functions
:make: if and switch functions
:make: 🎓 [Getting Started with Functions p. 1] General Functions