title: cannot convert type to bool
body: <pre><code>    public static void PathFinder (Client C, Path Distance)
      {
      if (C.Recording)
      {
  
        if(Distance to C.Path[C.PathIndex] &lt; 7); 
        {
        if(C.PathIndex + 1&lt; C.Path.Count)
        {
           C.PathIndex++; 
        }
        else
        {
           C.Recording = true;
           C.Path = new List&lt;Coord&gt;();
           C.PathIndex = 0;
           C.Path.Add(new Point(C.X, C.Y));
           C.Path = C.Path.Reverse();
           C.PathIndex = 1;
        }
           Coord To = Calculations.PullWeights(MakeCoord(C.X, C.Y), C.Path[C.PathIndex]);
        } 
      }
  }
  </code></pre>
  
  <p>I am getting several errors, but I`m not sure how to fix the problem. I have looked at solutions but am still a little clueless >.&lt;</p>