2016-09-17 4 views
1

液体/ジキルがwhileループを処理できるかどうかについての情報は見つかりませんでした。だから誰もこの質問をしていないか、Googleがあまり役に立たない。これはできることではありませんか?私は基本的に次のようなことができるようにしたいと思っています:液体/ジキルでのwhileループのやり方は?

<!-- creates the 'counter' variable--> 
{% assign counter = 0 %} 
<!-- while 'counter' is less than 10, do some stuff --> 
{% while counter < 10 %} 
    <!-- the stuff to be done followed by an increase in the 'counter' variable --> 
    {% assign counter = counter | plus: 1 %} 
<!-- the completion of the loop --> 
{% endwhile %} 

答えて

4

いいえループは液体です。

あなたはあなたの条件

{% for counter in (0..9) %} 
    <!-- the stuff to be done followed by an increase in the 'counter' variable --> 
    {{ counter }} 
{% endfor %} 
+0

ソリッドのために、このようなループのために使用することができます。ありがとうございました。 –

関連する問題