title: Check if current user has a especific value on a profile field
body: <p>I have a site with buddypress and I need to check if current user has a specific value on specific field</p>
  
  <p>I was trying this but it's not working</p>
  
  <pre><code> &lt;?php 
  $data= bp_profile_field_data( array('user_id'=&gt;get_current_user_id( 'ID' ))); 
   if($data=='Funny Guy') {
    echo 'yes';
  } else {
    echo 'no';
  }
  ?&gt;
  </code></pre>
  
  <p>Any hints why?</p>