-
Can we add multiple if or if - else if statements in a try catch block?
Is something like below even possible?
static String TEST_LINK = 'someLink/';
static String TEST_LINK2 = 'otherLink/';
//class method
public someMethod(String test) {
try {
if (!somecondition.matches(TEST_LINK)) { return something;}
if (!somecondition.matches(TEST_LINK2)) { return something;}
} catch (Exception e) {
}
}
Log In to reply.
Popular Salesforce Blogs
How Salesforce CPQ Software Eliminates Sales Hurdles?
In this era of an automated CRM solution like Salesforce CPQ, if your sales team is still struggling in generating quotes, writing proposals and closing…
Salesforce Development Company in the USA: Empowering Businesses for Success
Modern businesses are constantly seeking innovative solutions to streamline their operations, improve customer relationships, and boost overall efficiency in today's digital landscape. CRM platforms like…
5 Things To Know Before Implementing Salesforce Sales Cloud
Salesforce Sales Cloud is a Customer Relationship Management (CRM) platform that helps enhance the efficacy of the sales team of an organization and increase sales revenue.…
Popular Salesforce Videos
Revenue Generation Opportunities on AppExchange
If you're an aspiring entrepreneur or a business professional looking to expand your revenue streams, this video is a must-watch! Watch this extract from our…
Salesforce Developer to Architect
In this video, we will look at the top considerations that are crucial to being a successful architect on the Salesforce platform. Even more, We…
Salesforce Confetti | Salesforce Tutorial
In this video, we show you how you can add a confetti cannon to existing paths or create them from scratch. Surprise your staff and…
Popular Salesforce Infographics
How a Salesforce CRM can uplift your business?
This infographic depicts some major features Salesforce CRM will add to your business, how you can best engage with your customers which will result to…
How IT Leaders Can Build Employee Advocacy | Salesforce Infographic
We created the APAC Employee Engagement report based on this research, to provide key insights that are critical to IT and people leaders now and…
5 Advantages of Using The Salesforce Data Migration Tool in Your Organization
Advantages Of Using The Salesforce CRM Data Migration Services In Your Company are: Fast migration process Repetitive deployment Suitable for both novice and advanced Salesforce…