looping String in Salesforce code example Example: apex loop list for (variable : list_or_set) { code_block }