title: Expected function body after function declarator
body: <p>Not sure where the error is persisting here, having trouble including an if statement in my for loop</p>
  
  <pre><code> bool operator&lt;=(string a, const Zoo&amp; z)
          // Pre: none
          // Post: returns true if animal a is in Zoo z.
          //       the owner does not count as an animal.
  
            for ( int i=0; i&lt; z.count-1; i++ ) {
  
              if (z.cage[z.count-1] == a){
                return true;
              }
  
               else {
                 return false;
             }
      }
  </code></pre>