ok for this to work...
you will need 3 triggers:
in your two triggers that you want to be activated...
trigger one
activation filed: trigger1done=true
trigger two
activation filed: trigger2done =true
add another trigger on the map...
condition filed: trigger1done && trigger2done
type: end game
that will end your mission once the other two triggers have been activated, its not done via script, if you want to do it via script then do your 2 triggers like i said above...
make the 3rd trigger
condition filed: endgame1
type: end game
make a script, and in it put
@trigger1done && trigger2done
endgame1 = true
exit
in your init.sqs file
[] exec "whateverucallit.sqs"