title: playframework : Template equivalent of Java's continue & break?
body: <p>In my template I'm iterating over a list of elements. There are certain cases where I would like to <code>break;</code> or <code>continue;</code> in these loops. How would I do this in the play template language? </p>
  
  <p>I've been checking the documentation here: <a href="http://www.playframework.org/documentation/1.0.2.1/tags" rel="nofollow">http://www.playframework.org/documentation/1.0.2.1/tags</a> but I can't seem to find any information on how I would break or continue. Below are two example use cases:</p>
  
  <pre><code>#{list items:myList as:'my'}
     #{if my.name == "hello"}
       //Do something
       //I'd like to break here.
     #{/if}
  #{/list}
  </code></pre>
  
  <p>also later on in my code I've got a nested list iteration like so...</p>
  
  <pre><code>#{list items:item, as:'i'}
    #{list items:anotherItem, as:'aI'}
      #{if i.name != aI.name}
        //Do Something here.
        //I'd like to continue here.
      #{/if}
    #{/list}
  #{/list}
  </code></pre>
  
  <p><strong>Continues</strong> </p>
  
  <p>Just an additional question.. can I do things with a list like <code>.contains();</code>? Does anybody know of a nice guide for this language?</p>