Allow me to explain, my seems to be ignoring that "if" statement and just going with $CustomField1 = $user_profile[20];
$user_profile[20] is defined. If the user doesn't put something down when they sign up then it is blank. If they do not put a URL down for their custom avatar then I want a generic image to appear.
In my HTML it looks like this -

If the user did define their value then their value should show up, if they didn't then a generic image should show up.
Basically, if $user_profile[20] is blank, then I want to change its value to $vars_config{NonCGIURL}/avatar-generic.gif
Is this possible ?