-
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 Lookup Relationship and Salesforce Master-Detail Relationship: An Overview
The relationship is used to connect different Objects within org. Salesforce provides the following types of relationships : Lookup relationship Master-Detail relationship Self-relationship External lookup…
Top New Features in Spring’24 Release: Salesforce Platform in Lightning
To all the Salesforce enthusiasts, we’re excited to share the latest enhancements, features, and modifications rolled out on the Salesforce Lightning Platform. The top new Salesforce features…
What is the Pardot Engagement Studio in Salesforce in 2023?
Pardot Engagement Studio is a powerful marketing automation tool designed to help businesses nurture leads and customers through targeted, personalized campaigns. With Engagement Studio, marketers…
Popular Salesforce Videos
Dreamforce 2020 FAQs | Dreamforce To You | Salesforce Event
As the COVID-19 situation continues to evolve, questions around virtual Dreamforce 2020 continue to increase and that's why we've gone ahead and answered all the…
Salesforce Field Service: Complex Work and Routing | AblyPro Webinar
Salesforce Field Service is a powerful tool designed to help businesses manage complex field service workflows and optimize their routing processes. With Salesforce Field Service,…
Security in Salesforce | Learn About the Security Levels in Salesforce
This "???????? ?? ??????????" video by Edureka will help you understand the different levels of security in Salesforce. It will also talk about some of…
Popular Salesforce Infographics
Salesforce Pro Suite: Streamlining CRM for Small Businesses
Salesforce Pro Suite is CRM (customer relationship management) software specifically designed for small businesses. It combines various tools for marketing, sales, customer service, and commerce…
All About The Fourth Industrial Revolution | An Infographic
We’re in the midst of the Fourth Industrial Revolution – IoT, innovation and technology are transforming the way we work and customer expectations. Every industry…
Why Do Businesses Need Salesforce Development Services?
Businesses today require scalable, automated, and data-driven solutions to stay competitive. By integrating workflows and enhancing customer experiences, they can streamline operations and drive growth…