AnsweredAssumed Answered

Velocity "Contains" operator case sensitive?

Question asked by Chris Wilcox Champion on Apr 29, 2019
Latest reply on May 1, 2019 by Sanford Whiteman

Is there a way to write a "contains" command in velocity that is NOT case sensitive? For example:

 

#if !$lead.Variable.contains("Value")
    Output
#else
Default
#end

In that logic, the contains "Value" is case sensitive. Any way to write the command to bypass case sensitivity? I've tried a few variations with no luck.

 

Thanks,

Chris

Outcomes