Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は小枝を使用しており、指定された変数 xyz に x 個を超えるエントリがあるかどうかを確認したいと考えています。そんなことがあるものか?
ありがとう!
はい、長さフィルターが最適です。
{% if xyz | length > x %} {% do something %} {% endif %}
わかりました、xyz|length でうまくいくと思います。