Use CASE statement (or similar) for result of JS Transformer

You can use switch and case in the transformer
check out this post