Hello forum,

I am trying to check if ALL the elements of an array meets a condition.

the pseudocode should be:

if (all the elements in the array > value)
{
do something;
}


I don't need a check for every element like the following that I have already tryed:


for (uint i = 0; i < 6; i++)
{
if (array_element[i]> value)
{
do something;
}
}

but a check on the complete array.

Any suggestions on how to solve the problem?

Thank you very much