How to check if all my Toggle array is false without having to list them all?

Hi everyone!

There is my working code:

if (toggleOptions[0].isOn == false && toggleOptions[1].isOn == false && toggleOptions[2].isOn == false && toggleOptions[3].isOn == false && toggleOptions[4].isOn == false && toggleOptions[5].isOn == false)
    {
    Debug.Log("All the Toggle are false");
    buttonEnter.GetComponent<Button>().enabled = false;
    } 

I don’t want to list them all but this is the only way I found to chek if all are unselected IN THE SAME TIME.

Thanks in advance !
Best!

Alex

bool allTogglesOff = true ;

for( int i = 0 ; i < toggleOptions.Length ; ++i )
{
    if( toggleOptions*.isOn )*

{
allTogglesOff = false ;
break ;
}
}

if( allTogglesOff )
{
Debug.Log(“All the Toggle are false”);
buttonEnter.GetComponent().enabled = false;
}