title: SSRS Expressions with If statement
body: <p>I was doing reporting on SSRS reports. I need to write an expression for the Textbox to show different input parameters if provided. I have tried writting the expression. But couldn't make it perfect. Here I provided sample code in which i need to have a SSRS expression. Anyone help me provide the same expression in SSRS format.</p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>If(Parameters!FromCreationdate.Value !=null &amp;&amp; Parameters!ToCreationdate.Value !=null)
  {
    "Created Date:"+ Parameters!FromCreationdate.Value + "To Created Date:"+Parameters!ToCreationdate.Value;
  }
  else if(Parameters!FromCreationdate.Value !=null)
  {
    "Created Date:"+ Parameters!FromCreationdate.Value;
  }
  else if(Parameters!ToCreationdate.Value !=null)
  {
   "To Created Date:"+ Parameters!ToCreationdate.Value;
  }
  </code></pre>
  
  <p><strong>Expression</strong></p>
  
  <pre><code>=IIf(isnothing(Parameters!FromCreationdate.Value),"", "From Creation Date:"+Parameters!FromCreationdate.Value, iif(isnothing(Parameters!FromCreationdate.Value)),"", "To Creation Date:"+Parameters!FromCreationdate.Value)
  </code></pre>
  
  <p>Thanks</p>