You need to sign in to do that
Don't have an account?
IC-Tanner
'Contains' logic expression operator?
Does anyone know if there is a 'contains' logic apex operator? I have a multipicklist that I want to utilize 'contains' logic on. For example (psuedocode):
contact c = new contact();
if (c.multiPickList contains 'textvalue') {}
//'textvalue' in this case would be a multipicklist option
the standard equals operator == doesn't really work here as the multipicklist field functions like a text string and places all the values selected together as one string. Therefore I have no way of checking if a value is contained by the mulitpicklist unless it is the only option selected.
Thanks ahead of time if anyone knows a workaround for this.
Like...
.....
.....
String str = c.multiPickList__c;
.......
Hope this will help.
Thanks,
V.R.