Difference between GetAttribute ("RelativeVisibility") & GetAttribute ("Visibility") please

I need to know the difference between GetAttribute (“RelativeVisibility”) & GetAttribute (“Visibility”)!

As far as I’ve been able to tell, relativeVisibility returns a boolean, True for visibile and False of not visible, whereas visibility returns an integer, usually 0 for visible and 1 for invisible although I’ve seen other values show up as well.

I’m not sure if there’s a functional or technical difference between them that may preference the use of one over the other.