unity how to check object position

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

Also in C#: