foreach
含义:Iterates over a list and sets variable to be each element of list, performing BLOCK for
each element of list.白话文:对变量list中的所有“行”进行逐行扫描,直到全部行扫描完并执行BLOCK结束为止
Format
foreach variable (list) {BLOCK}
foreach unit [arg] variable (list) {BLOCK}
Parameters
| Parameter | Definition |
| unit | controls how list is split into individual elements Valid Values |