
-----for(Account acc: acc_list)-------
can you explain in detail please ...
2 件の回答
This is a standard For loop in Salesforce syntax. for(Account acc: acc_list) {
//Do Something
}
The way to read this is
For every Account, in the Account List, perform the actions within the brackets. If there are 3 accounts in acc_list, then the code will be run 3 times, once per account.