-
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
Salesforce Marketing Cloud Hacks You Must Try
For any Marketing Cloud professional, it is important to know the ins and outs of the product so it can be used to its full…
Popular Salesforce Videos
Web to Case Functionality in Salesforce | All You Need to Know
This video discusses the functionality of Web to Case in Salesforce, which allows website users to submit inquiries or information that can be converted into…
Field Level Security In Salesforce
Field-level security is a setting that lets Salesforce admins define user restrictions as to who can access specific org data. The setting lets the admin…
4 Salesforce Implementation Challenges Faced by Enterprises
Let's have a look at some of the common challenges enterprises face while implementing Salesforce platform, if you need any help in implementing Salesforce from…
Popular Salesforce Infographics
Enable Ideas Management in Salesforce LEX to Drive Innovation
Leveraging and managing ideas on your Salesforce-powered communities can lead to business growth, improved product quality, and stellar customer experience. Not only does the Ideas…
Salesforce and QuickBooks Integration - Transform your Business
Do you know that you can convert 30% of your opportunities into leads when you integrate Salesforce and QuickBooks together? Sounds Interesting right? Our connector eShopSync…
Salesforce Buzz | An Infographic
While Salesforce has been coined as the World's #1 CRM, there has been a constant buzz around the stats and facts of it. Almost 58%…