Apache的速度foreach循环#continue [英] Apache Velocity foreach loop #continue

查看:182
本文介绍了Apache的速度foreach循环#continue的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有的foreach 回路跳转到下一个迭代 #continue 命令?

Is there a #continue command for jump to next iteration in foreach loop?

推荐答案

我有一大堆的速度code,但我不认为我见过这个。我相信你必须使用 #foreach ,然后使用和#如果在循环中检查你的跳跃的条件。该VTL指南似乎并没有更好的办法。

I have a bunch of velocity code but I don't think I've ever seen this. I believe you have to use a #foreach and then use and #if to check your skip condition within the loop. The VTL guide doesn't seem have a better approach.

这篇关于Apache的速度foreach循环#continue的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆