Two condition UI created button

Really new to Unity and I was wondering if there was a way to have to conditions on a button created from the GameObject->UI drop down menu. For example, clicking it once would load a specific texture, then clicking on it again would load another different texture.

There isn’t a gameObject that can have two conditions. You can simulate what you want by scripting.

For example, you want to change the texture of a rawimage.
You can have an array of textures and every time you click the button you switch to the next texture in the array and sets it in the rawimage.

public Texture[] Textures; // These are set inside unity editor
public RawImage Image; // The image you want to change its texture

private int clicks;

void Start()
{
      clicks = 0;
}

public void ButtonClick() // This is called in the OnClick event from the button in the unity editor
{
     clicks++;
     if (clicks == Textures.Length)
     {
          clicks = 0;
     }

     Image.texture = Textures[clicks];
}