foreach farmers farmer-data [
[ [farmer row] →
ask farmer [
set buffering-capacity item 0 row ;;
set learning-capacity item 1 row ;;
set self-organization item 2 row ;;
set policy-understanding item 3 row ;;
set climate-adaptability item 4 row ;;
]
]
]
需要在foreach前面加上“(”,最后加上“)”