Yeah the docudemon example for SettlementBuildingExists is a bit faulty.
You have to use
Code:
declare_counter muster_exists
set_counter muster_exists 0
monitor_event SettlementTurnStart SettlementName London
and SettlementBuildingExists emergency_call = emergency_level
set_counter muster_exists 1
;console_command puppify_my_love
end_monitor
As logic tokens you can use >, <, =, a combination of these and !=