Apache Velocity foreach循环#continue

时间:2011-09-23 13:50:53

标签: apache foreach velocity

是否有#continue命令跳转到foreach循环中的下一次迭代?

2 个答案:

答案 0 :(得分:14)

我有一堆速度代码,但我不认为我见过这个。我相信您必须使用#foreach,然后使用和#if检查循环中的跳过条件。 The VTL guide似乎没有更好的方法。

答案 1 :(得分:4)

根据文档,Apache Velocity似乎没有#continue函数:http://velocity.apache.org/engine/devel/user-guide.html