Check out example codes for "how to check if an object is active in unity". It will help you in understanding the concepts better.

Code Example 1

if (myGameObject.activeSelf)

Learn ReactJs, React Native from akashmittal.com