[For each "Family1"]
[variable 1 = 0]
set 'boolean' to false
[Else & 'boolean' = false]
set 'boolean' to true
Other code here
The '>' Are indents
[Event]
[Sub-event]
'Boolean' would be a boolean (True/False) instance variable on the Family1 instance
That should work.
I can clarify if you don't understand, I'm bad at explaining.