title: If File.Exists = True Do Nothing Else Copy
body: <p>I am wanting to check if a file exists, if it does do nothing if it does not copy over a file.  This is the code I have, but I get compile errors such as </p>
  
  <pre><code>Only assignment, call increment, decrement and new object expressions can be used as a statement
  Invalid expression return
  Invalid expression term ':'
  ; Expected
  </code></pre>
  
  <p>This is the syntax I have</p>
  
  <pre><code>string template = "C:\\Test\\database12.mdb";
  string dest = "R:\\Production\\database12.mdb";
  if (File.Exists(dest) ? return : File.Copy(template, dest));
  </code></pre>