How do I set a condition for a value not in a custom field?

Jenifer Kuntz October 6, 2016

I have a multi-select custom field and I am sending a custom email based on this field.  If the field contains other I want to send one email if it does not contain other it is a different email.

I am using 'My value' in cfValues['My Multi List']*.value but ca not figure out the reverse, not in does not work.  

How can I do this?

Thanks!

1 answer

1 accepted

1 vote
Answer accepted
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 6, 2016

The converse is:

! ('My value' in cfValues['My Multi List']*.value)

or if you used a variable it would be more obvious

def ret = 'My value' in cfValues['My Multi List']*.value
!ret
Jenifer Kuntz October 6, 2016

Thank you!

Suggest an answer

Log in or Sign up to answer