You haven't really provided us with a lot of info but the following might work?
<t t-foreach="[1, 2, 3]" t-as="i">
you loop through elements, check for a condition, if the condition is not met it'll break out of the if and if you don't have any statements under the if statement it'll break out of the for loop for that iteration
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 3/9/15, 6:31 AM|
|Seen: 1417 times|
|Last updated: 3/16/15, 8:10 AM|