unity csharp get bool from another script

Code Example - unity csharp get bool from another script

                
                        GameObject.Find("NAMEOFOBJECTWITHCOMPONENT").GetComponent<NAMEOFSCRIPT>().NAMEOFBOOL