function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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 (......;