was_exposed_externally¶
Syntax¶
Parameters¶
condition- A transmissible condition within the model.
Returns¶
Returns 1 (true) if the current agent was exposed to the given condition by an importation event, typically by the meta agent. Otherwise, this returns 0 (false).
Description¶
Determine whether the agent was exposed to a given condition by an importation event or as part of the simulation.
Examples¶
This example checks if the current agent was exposed to a transmissible condition Flu externally, and if so sends them to a ImportedAgent state.