apex List or Set Iteration For Loops access index code example Example: apex loop list for (variable : list_or_set) { code_block }