-
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
One Must Opt For Salesforce Email Automation
There are still various organizations that prefer email marketing campaigns to reach out to their customers in the best way possible. And why not? People…
How Our Favorite Sites and Tools Use Machine Learning | Salesforce Guide
As companies collect more and more data about their customers, an increased amount of duplicate information starts appearing in the data as well, causing a…
Client-Side Validation
Carrying out validation in the browser when a user submits a form is a technique that has been followed by the number of years. The…
Popular Salesforce Videos
What is a Salesforce PDO Partner?
Salesforce market is growing very fast these years. It is estimated that in 2021 the Salesforce ecosystem will be worth around 100 billion U.S. dollars.…
Salesforce Tutorial | Data Extensions in Marketing Cloud
In this video, we are going to show you something so simple, yet so powerful, you may not even know it existed. For more Salesforce…
Introduction to Lightning Web Components (LWC)
Why Lightning Web Component (LWC) Part 1 - Vanilla HTML5 Web Components Benefits of Web Component Pillars of Web Component Demo of Custom Element and…
Popular Salesforce Infographics
How To Sell Better in 2020 | Tips From Salesforce Leaders
There are various things that you need to pay heed on while selling something. In 2020, where technology is ruling the world, and we are…
Timing is Everything : Understanding B2B Buyer Behavior
B2B buyer activity and research peaks at different times of the year, week, and day. Software Advice conducted a study gathering data from six million…
Top Benefits of Integrating Salesforce and NetSuite
Salesforce, on the one hand, is the world’s number cloud-based CRM. NetSuite, on the other hand, is one of the best ERP systems. And when…