Legally, if you can see any surface at-all and are not actually in cloud (below 3000ft anyway) you are okay.
However, when applying basic common sense, I agree with A&C - if you can't get through the cloud after an engine failure with continuous sight of the surface, you've gone wrong.
G