Is there a way to compare multiple values at once?

Currently if I have a deployment that I do not want to relevant to multiple machines with different strings in their hostname I have to do something like this:

hostname does not contain "PRMT" and hostname does not contain "CTXPRES"

Is there a way for me to chain the compares together?

This doesn’t work, but something like:

hostname does not contain "PRMT" or "CTXPRES"

Probably try

not exists (hostname, ("PRMT";"CTXPRES")) whose (item 0 of it contains item 1 of it)
4 Likes

Works perfectly, thank you Jason. <3

Wow, I didn’t know ‘whose’ would implicitly iterate over plurals like that… Super cool! Thanks @JasonWalker

2 Likes

or…

(it does not contain "PRMT" and it does not contain "CTXPRES") of (hostname)

2 Likes