how to get a variable from another script csharp

Code Example - how to get a variable from another script csharp

                
                        GameObject Button = GameObject.Find("Button");
button button = Button.GetComponent<button>();
//  ^ Name of script                 ^ Also name of script
button.Pressed = true