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

Code Example 1

if (transform.position.x == 0)
            {
                print("hi");
            }

Learn ReactJs, React Native from akashmittal.com