How compare array of boolean ?(pleas read explation )

for example, I have 10 booleans ( array of booleans ) I want to compare all of them with true and false, and if even 1 of them was false return boolean to false.
another example if I have 10 (AI) guards and one of them saw player all exist got locked.
thanks.

If you have an array of booleans and just want to check if one of them is different, you can check with a “for each with break” function and do you function/event call if it differs.

On the case of seprate AIs I would recommend to create an extra class (Blueprint). It will act as a manager. The AIs need a reference of that manager and the manager needs a refrence of the AIs. In the manager you create a function that will be called by an AI with visual contact. This function then will call every other AI to change their behavior.