title: Select "umbraco item" using razor
body: <p>I want to write a razor macro <strong><em>MySelectMacro</em></strong> that selects which <strong>umbraco:item</strong> to be rendered.</p>
  
  <p>my simple structure for this case is two pages <strong>-MasterPage and TextPage-</strong> 
  and the TextPage contains two fields of type rich-text editor <strong>-field_1 and field_2-</strong></p>
  
  <p>this is my try which don't work,</p>
  
  <p>Here is the <strong>TextPage</strong> template:
  </p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;asp:Content ContentPlaceHolderId="MainPageContent" runat="server"&gt;
          &lt;umbraco:Macro Alias="MySelectMacro" runat="server" /&gt;
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p>and here is the macro <strong>MySelectMacro</strong>:</p>
  
  <pre class="lang-html prettyprint-override"><code>@if (condition)
  {
      &lt;umbraco:Item field="field_1" runat="server" /&gt;
  }
  else
  {
      &lt;umbraco:Item field="field_2" runat="server" /&gt;
  }
  </code></pre>
  
  <p><em>nb: I'm new in umbraco and razors</em></p>