title: Set/Change property with dynamic name using Cypher
body: <p>So when I try to set up a property name/value pair, I'm not sure what the property name will be. It will depend on a meta data node.</p>
  
  <p>Two metadata nodes:</p>
  
  <pre><code>{ id:1, value:'name' }
  { id:2, value:'age' }
  </code></pre>
  
  <p>I need to add a property for a Person node but I don't want to use condition statement (and cypher does not have condition statement). I want something like:</p>
  
  <pre><code>if (metadata.id = 1) {
      set person.name = 'xx'
  } else if (metadata.id = 2) {
      set person.age = 'xx'
  }
  </code></pre>
  
  <p>or:</p>
  
  <pre><code>match (m:metadata{id:1}), (p:person{id:1}) set p.'m.value' = 'xx'
  </code></pre>
  
  <p>I don't want to use the <code>if / else</code> condition statement. Is there a cypher condition statement, or how can this be achieved?</p>