title: If field is NOT null, then hide an object (SSRS Expression)
body: <p>I have a rectangle. </p>
  
  <p>I want to hide it if a field (X) is NOT NULL.</p>
  
  <p>I tried this but it is not working:</p>
  
  <pre><code>=IIF(NOT IsNothing(Fields!filepath.Value), 1, 0)
  </code></pre>
  
  <p>I get the error:</p>
  
  <p>An error occurred during local report processing. </p>
  
  <p>The Hidden expression used in rectangle 'ID2398' returned a data type that is not valid.</p>
  
  <p>Anyone know why I'm having this issue?</p>
  
  <p>Do I need to place the actual field onto the report? I tried it but I keep getting the same error.</p>