Cannot convert type System.Collections.Generic.IEnumerable<> to bool
<p>I'm trying to code this in an if condition:</p>

<pre><code>if (submitAnswersResponseRootObject.Response.SubmitAnswersResult.Prompts.prompt.Where(p=&gt;p.code == 7101))
</code></pre>

<p>but I'm getting error:</p>

<blockquote>
  <p>Cannot implicitly convert type
  System.Collections.Generic.IEnumerable&lt;> to bool</p>
</blockquote>

<p>What am I doing wrong?</p>