AnsweredAssumed Answered

Using multiple contains values in Velocity

Question asked by Gally Articola on Aug 8, 2018
Latest reply on Mar 21, 2019 by Sanford Whiteman

This is my first time using Velocity so apologies if it's an obvious answer. We need to populate based on multiple contains values in a single field, and have a default for anything that doesn't match but I'm not sure how best to write this out using Velocity. How would I write out this script?


If Job Function contains "programmer" "engineer"

Show: "Hello techie person"


elseIf Job Function contains "marketer" "sales"
Show: "Hello marketing person"



elseIf Job Function doesn't contain any of those values

Show: "Hello general person"