title: Cypher match in the while loop
body: <p>Is there any possible to do the same work for <code>while(condition){....}</code> in Cypher? </p>
  
  <p>For example:</p>
  
  <pre><code>while(x&gt;300){x-300}
  </code></pre>
  
  <p>So only when x &lt;300 it will stop the while loop which means it will stop keeping match in cypher.
  Here is my query:</p>
  
  <pre><code>MATCH p=(n:Label{updatetime:'2017/5/1 6:30'})-[r:GO_TO{routeid:'1'}]-&gt;()
  MATCH p1=(n1:Label{updatetime:'2017/5/1 6:30'})-[r1:GO_TO{routeid:'2'}]-&gt;() 
  MATCH p2=(n2:Label{updatetime:'2017/5/1 6:30'})-[r2:GO_TO{routeid:'3'}]-&gt;() 
  MATCH p3=(n3:Label{updatetime:'2017/5/1 6:35'})-[r3:GO_TO{routeid:'4'}]-&gt;() 
  MATCH p4=(n4:Label{updatetime:'2017/5/1 6:45'})-[r4:GO_TO{routeid:'5'}]-&gt;() 
  MATCH p5=(n5:Label{updatetime:'2017/5/1 6:45'})-[r5:GO_TO{routeid:'6'}]-&gt;() 
  MATCH p6=(n6:Label{updatetime:'2017/5/1 6:50'})-[r6:GO_TO{routeid:'7'}]-&gt;()
  </code></pre>