Behavior of Elements in Conditional Containers

Before discussing how conditional Containers can be activated and deactivated, it is useful to first explain how elements behave when they are within a conditional Container An element that acts like a "box" or a "folder" into which other elements can be placed. It can be used to create hierarchical models..

Elements within conditional Containers behave as follows:

Note: When a Container is triggered to deactivate, all elements inside the Container are updated before the Container deactivates.
Warning: On Changed, On True and On False events are triggered whenever the element determines that the argument to the event has changed, become true, or become false, respectively. If the element is in a conditional Container, it does not evaluate these arguments while it is inactive, and therefore some On Changed, On True and On False events that occur while the Container is inactive can be "delayed" until the element activates (rather than ignored). For example, if an On True trigger is defined as "Etime > 15 days", and the element is inactive until 20 days, the event will actually be triggered at 20 days (since, from the element's viewpoint, this is first time that it is able to determine that the condition has become true).

As a simple example of the behavior of an element inside a conditional Container, consider an Integrator with an Initial Value of 10, and a Rate of Change of 5 per day. Assume that the Integrator was within a conditional Container that was initially inactive, was activated at 10 days, and deactivated at 20 days.

In this case, the output of the Integrator would behave as shown below:

The Integrator starts at 10. It remains at 10 until the Integrator activates at 10 days. Between 10 and 20 days, the output increases linearly (to 60), and after 20 days, the output stays constant at 60.