This may sound silly but I was wondering if we can use an
IN in a
I know we can do this in a query but suppose if I need to run multiple
IF conditions on a particular object, it doesn't make sense to have multiple queries but have a single query and iterate over it.
So instead of
if(l.Status == 'Dead' || l.Status == 'Cold' || l.Status == 'Duplicate')
can I have something like
List.add('Dead','Duplicate','Cold'); if(l.Status IN List)
Is something like this possible?