Display block on homepage depending on value in user profile field? I'm currently displaying a block on my D7 site' homepage.

Now I've a requirement to display that block only if the logged in user has a specific value in their profile.

I know it can be done using php evaluation by navigating to the bottom of the block and then click (Pages > Pages on which this PHP code returns TRUE ) but have no experience in writing php scripts.

Can anyone help with this please.

thanks
You can do something like this

global $user;


 If($user-&gt;your_profile_field_value == 'requiredvalue') {
    Return true;
    }
    Else {
    Return false;
    }