How do i check if same but many objects have x value at maximum?

like i have 5 cubes with a health script and how do i check if all of them have health 100
and if they have 100 then i could just say x bool is true but i dont know how to check if all of them have a value of 100.

You can have an bool accessor, like :

public bool allFull
    get { return ( == 100 && == 100 && == 100 && == 100 && == 100 ); }

but if you consider using it often, like in an Update call, then do it the other way around, have a static bool value, with a set accessor for all heath, that changes this to false, whenever one is less than 100.