How can i make this condicion works?

If (bloco.setactive == false){

score++;
}

i know this doenst work but if there is something seems like that to make ito works help me.

if (bloco.gameObject.activeSelf)
{
score++;
}

although this will continually increment score until the gameobject is inactive.