Many of us achieve this type of love only with pets or small children. I'll love you if you do this, or act that way, or perform in some way that meets my expectations. Most of us received conditional love as children. So we put on a performance by denying those unapproved aspects of ourselves to get the maximum number of strokes. It was not real acceptance of ourselves we received as children, just an absence of condemnation of the aspects we hid.
Conditional love is widespread today among adults in most relationships.
We couldn't possibly love them if they do this, or they dislike us, or they have the wrong views, etc. If you don't act the way I think you should act, then I'll reject you. You are totally unacceptable to me if you lie, cheat, two-time me, hate me, treat my family wrong, don't agree with me on issues, etc. Conditional love created many trauma knots in us as children which we then later as adults need to untie. It was trained out of us by the traumas of childhood.