Loops in Salesforce – For Loop

AGENDA

  • Different Types of Loops
  • For Loop in Salesforce
  • The different way to develop for Loop

Types of For Loop

Salesforce Supports 3 Kinds of For loop

  • Traditional For Loop(like Java)
  • The List or Set Iteration For Loop
  • The SOQL For Loop

Traditional For Loop

for (init_stmt; exit_condition; increment_stmt) {
  // Code block
} 
  1. init_stmt
  2. Exit Condition
  3. Code Block
  4. Increment Statement
  5. Repeat Step 2,3 & 4

The List OR Set Iteration For Loop

for (datatype variable ; list_or_set) {
  // Code block
} 

Here is the Recording for the same

If you have any query or any suggestion you can message me @cloudyamit OR you can email me @[email protected]

Happy Learning 😉  Sharing is Caring 🙂

#SFDCPanther #BAM

Amit Singh
Amit Singh

Amit Singh aka @sfdcpanther/pantherschools, a Salesforce Technical Architect, Consultant with over 8+ years of experience in Salesforce technology. 21x Certified. Blogger, Speaker, and Instructor. DevSecOps Champion

Articles: 299

Newsletter Updates

Enter your email address below and subscribe to our newsletter

Leave a Reply

Your email address will not be published. Required fields are marked *

Discover more from Panther Schools

Subscribe now to keep reading and get access to the full archive.

Continue reading