โ10-06-2017 07:54 AM
I assume noobish question, but Iโm trying to design a map to populate different descriptions in an output field based on different codes in an input field. For example $input.code to $output.description. If code=A then description=Alpha, if code=B then description=Beta, etcโฆ
So itโs one input field mapped to one output field, but not sure how to do it. Right now Iโm doing a goofy string replace type of thing for every possibility in one big rule, but Iโm sure there has to be a more straight forward way.
โ10-06-2017 09:46 AM
See if the Conditional snap will provide what you need: https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1438463/Conditional
โ10-06-2017 11:46 AM
Thanks, that works! I was already in a map for some other stuff so was trying to do it there, but is a lot cleaner as a separate conditional snap.