Nice, thank you!

On 2017-08-24 08:46, Mark Payne wrote:
Laurens,

Certainly, you can:

${field:startsWith('alpha'):or(
    ${field:startsWith('beta')}
):or(
    ${field:startsWith('gamma')}
)}

Or, alternatively, you could use a regex:

${field:matches( '(alpha|beta|gamma).*' )}

Thanks
-Mark

On Aug 24, 2017, at 11:06 AM, Laurens Vets <[email protected]> wrote:

Hi list,

Is it possible to have multiple 'or' statements in the query language? What I want to do is route on a JSON attribute if it doesn't start with 'alpha', 'beta' or 'gamma'.

Is it possible to add a 3rd condition to the following somehow:

${field:startsWith('alpha'):or(
        ${field:startsWith('beta')}
)}

Reply via email to