How to check for all of a map's variables

So I made a map which contains a logic variable for each player and I want to check if all of their variables are set to true instead of checking individually, do you know how to do this.

For example:
if all variables of DidPlayerSurvive are true:
Print(“All variables are true”)

This is how the map is initiated:

    var DidPlayerSurvive : [player]logic = map{}
1 Like

Maybe try something like…

    bDidTheySurvive(): logic=  
        for (Player: Self.GetPlayspace().GetPlayers()):
            if  (var bIsurvived: logic = DidPlayerSurvive[Player]):
                if (bIsurvived = false):
                    return false
        return true

If any played didn’t survive ‘All Survived’ is false, otherwise it’s true. My code assumes that all players are assigned DidPlayerSurvive, otherwise an unassigned player is just ignored.