+ Start a Discussion
yespeeyespee 

IN Clause in a trigger

Can someone please help me with syntax for using IN clause in a trigger. I could not find any examples.  Kindly let me know if this is not possible at all. 
 
eg.
if (color <contains / IN> ('BL', 'RE', 'YE') 
medal_color = 'classA';
} else if (......;
TehNrdTehNrd
Try this.

Code:
if(color.contains('BL') || color.contains('RE') || color.contains('YE') )
medal_color = 'classA';
} else if (......;