{break}停止循环。
{break} 例子

_{$data = [1,2,3,4,5]}_
_ {foreach $data as $value}_
   _{if $value == 3}_
      结束遍历
      _{break}_
   _{/if}_
    _{$value}_
_{/foreach}_

输出:

1 2