-
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 Integrating Salesforce with Accounting Tools Helps Businesses to Change the Operational Paradigm
In a world where work from home has become the new normal, businesses quickly need to adapt to the changing market scenario. Companies must take…
Debug and Deployment Tools in Salesforce
Development Tools In Salesforce 1. Developer Edition Environment You may start designing and testing your software-as-a-service application right now in this online environment. Designed for…
Popular Salesforce Videos
Salesforce Multifactor Authentication Webinar
An extra layer of security on your Salesforce org is always worth it. Learn how to safeguard your sensitive Salesforce account information from unauthorized access…
How Cyntexa Helped Diet Meal And Food Ordering Service Providers Offer Their Users The Ability To Order Online | Salesforce Commerce Cloud
It is important to keep your business at the top with the latest technical advancements. Presenting you a case study showcasing how Cyntexa Helped Diet…
What is Salesforce Commerce Cloud? | Salesforce Video Tutorial
Do you know what is Salesforce Commerce Cloud? Formerly called Demandware, it is a cloud-based service for unifying the way businesses engage with customers over…
Popular Salesforce Infographics
How Artificial Intelligence Helps Sales Teams
AI is built into many different CRM software and platforms including Salesforce. In particular, Salesforce uses its proprietary Einstein AI. It helps companies find unexpected…
Salesforce Marketing Automation: Sales or Marketing Tool? [infographic]
Marketing automation has a hidden talent. Despite being marketed for years as a tool for, well, marketers, automation is changing the shape of the modern…
How Important Is CRM Today? | An Infographic
CRM or Customer Relationship Management has become unavoidable and imperative in the world of business to reach the desired level of success. It has reached…