Evaluate a string for multiple strings

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

Evaluate a string for multiple strings

This post has NOT been accepted by the mailing list yet.

I have a variable that I need to evaluate to see if it contains a list of strings.

right now I am doing the following:

<#if x?contains("A") || x?contains("B") || x?contains("C")>

This seems sloppy and annoyingly long.  I've searched and searched, but can't find a better way.  Any ideas?