You need to sign in to do that
Don't have an account?
Vladimir Mir 1
simplify: if( (opp.StageName == 'PO received') || (opp.StageName == 'Closed Won') ) {...}
Hi all. can you simplify the above to something similar to SOQL's "IN" operator? Do not want to duplicate field name for every potential value check
All Answers
Option 1 : Using Collection
Option 2 : Using switch statement