title: Neo4J create temp variable within Cypher
body: <p>So my Top-Level problem is I am trying to return whether a <code>MERGE</code> resulted in the creation of a new Node or not.</p>
  
  <p>In order to do this I was thinking I could just create a simple temp boolean setting it to TRUE using <code>ON CREATE</code></p>
  
  <p>How I imagine it working:</p>
  
  <pre><code>MERGE(: Person {id:'Tom Jones'})
  WITH false as temp_bool
  ON CREATE set temp_bool = true
  RETURN temp_bool
  </code></pre>
  
  <p>Obviously this does not work.</p>
  
  <p>I am looking for a way to create arbitrary temp values within a Cypher query, and have the ability to return those variables in the end.</p>
  
  <p>Thanks</p>