Skip to main content
what is the meaning of this

 

-----for(Account acc: acc_list)-------

 

can you explain  in detail  please ...
2 respuestas
  1. 5 jun 2014, 13:48
    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.  
0/9000