-
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 to Eliminate Technical Debt in Salesforce
There are many factors that can affect the quality of the development of your Salesforce org. From increasing complexity to deadlines to lack of technical…
Explain the Top 10 Reasons to Choose Salesforce for your Business
What is Salesforce? Salesforce is a cloud-based software company that offers tools to businesses to help them find more prospects, close more deals, and provide…
Popular Salesforce Videos
Prepare for Your Salesforce Pardot Implementation
If you're preparing for your Pardot implementation, you've come to the right place! Pardot implementation is a complex, multi-step process. In this video, we will…
How to Prepare for Salesforce Platform App Builder (CRT-402) ?
The Salesforce Platform App Builder certification focuses on the different declarative functions available to an admin. Development and code are not included, but it focuses…
Salesforce Apps: Managed vs. UnManaged Package Importance from Lederhosen Salesforce
Salesforce has Two Types of Packages ( Tabs, Objects, Software ) you can load: Managed & UnManaged. This video describes both. The advantage of a…
Popular Salesforce Infographics
DreamOle Event - Salesforce
A group of volunteers within the Spanish Salesforce Trailblazer Community. Their Mission is to put together a Community Conference that would help the Spanish Community…
Pardot January 2020 Release [Infographic]
HML Personalisation on Landing Pages and Forms What: HML is the new way to add personalization to Pardot marketing assets, replacing variable tags – you…
Benefits of Salesforce Pardot Integration for Sales and Marketing
Learn how the Salesforce Pardot Integration could improve lead scoring & customer journey through automation and other sales & marketing activities!