Given zero or more step functions and a condition function `condition` (a function of no arguments), evaluate the step functions whenever `condition` returns `True`.
(cond, *step_funcs)
| 5478 | |
| 5479 | |
| 5480 | def when_true(cond, *step_funcs): |
| 5481 | """ |
| 5482 | Given zero or more step functions and a condition function `condition` (a function of |
| 5483 | no arguments), evaluate the step functions whenever `condition` returns `True`. |
| 5484 | """ |
| 5485 | return _when_true_funcs(cond, *step_funcs) |
| 5486 | |
| 5487 | |
| 5488 | def when_false(cond, *step_funcs): |
nothing calls this directly
no test coverage detected