0
{% for user_id, x, y in information %}
{% if it is the first time that user_id is different from the previous iteration %}
do something
{% elseif user_id is different from the user_id in the previous iteration %}
do something
{% endif %}
誰能幫助不同。謝謝!!!
這是什麼第一次user_id理論上改變 –
如果改變將做它的工作。 – Jingo