title: Is there any way to do a conditional in a NLog layout?
body: <p>I'm trying to create a NLog layout config like so:</p>
  
  <pre><code>layout = "${callsite} &gt; ${message} (${exception:format=tostring})"
  </code></pre>
  
  <p>The output for this layout is (when I test it):</p>
  
  <blockquote>
    <p>TestProject.Program.Main > exception thrown (System.Exception: exception message)</p>
  </blockquote>
  
  <p>However, if I try to output a message that doesn't have an exception, it shows up like this:</p>
  
  <blockquote>
    <p>TestProject.Program.Main > no exception thrown ()</p>
  </blockquote>
  
  <p>Is there any way to modify this layout so that the parenthesis only show up when there's actually an exception?</p>