Loops allow us to repeat a piece of code with the desired number of iterations. Basically, keep doing something until the condition no longer evaluates to true.

There are different types of loops:

  1. For loop. Performs a set of statements for each item in a set of records.
  2. SOQL for loop
  3. Java-like for loop
  4. While loop
  5. Do… while loop

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s