Need help by script (expecting ), found '{'. (BCE0044)

If you could help me, I would be sooo happy:

{
	if (torch.SetActive(true) && (Input.GetKeyDown("t"))
		{
			torch.SetActive(false); 
		}
}

hi;
for checking an object is activated u should do like this :

    if (torch.activeSelf == true && (Input.GetKeyDown("t")))
         {
            torch.SetActive(false);
        }