2013-08-29 3 views
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 %} 

수있는 사람의 도움을 원하는

다른 경우. 감사!!!

답변