Skip to main content
Search
Search This Blog
sfdcbox.com
Home
More…
Share
Get link
Facebook
Twitter
Pinterest
Email
Other Apps
January 02, 2014
APEX Loops
Loops
Apex supports the following five types of procedural loops:
1.
do {
statement
} while (
Boolean_condition
);
2.
while (
Boolean_condition
)
statement
;
3.
for (
initialization
;
Boolean_exit_condition
;
increment
)
statement
;
4.
for (
variable
:
array_or_set
)
statement
;
5.
for (
variable
: [
inline_soql_query
])
statement
;
All loops allow for loop control structures:
break
; exits the entire loop
continue
; skips to the next iteration of the loop
Comments
Popular posts
March 04, 2019
Lightning Web Components Quick Action workaround - highly flexible
May 28, 2017
Kanban drag and drop Lightning Component - reusable
Comments
Post a comment