# Objective - I needed to run a system whenever a specific condition became true after being previously false. - Other users might also need to run a system when a condition changes, regardless of if it became true or false. ## Solution - This adds two systems to common_conditions: - `condition_changed` that changes whenever the inner condition changes - `condition_became_true` that returns true whenever the inner condition becomes true after previously being false ## Testing - I added a doctest for each function --------- Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com> Co-authored-by: Jan Hohenheim <jan@hohenheim.ch> |
||
|---|---|---|
| .. | ||
| executor | ||
| condition.rs | ||
| config.rs | ||
| graph_utils.rs | ||
| mod.rs | ||
| schedule.rs | ||
| set.rs | ||
| stepping.rs | ||