Continuously monitor childrens properties

Hello guys,

im back with another question.
There an object with few hundreds children. At some point through player interaction the variable public bool done = false; of evry child will become true.
My intetntion is to monitor all the objects at once through the parent.

Some code for the parent (as i imagine it):

void Update () {

		if (for(int i = 0; i < children; i++) children*.GetComponent<Child_Script>().done = true;) {*

Debug.Log (“all done”);

  •      }*
    
  •  }*
    

What are your thoughts, I reached a dead end of some kind.
Greetings

you only have one = in your if statement, the program thinks you’re assigning a value. use == to check if one variable is equal to a state.