on_change

pypagate.on_change(form: Formula | Term, *args, **kwargs)

Use as a decorator: If a Formula’s truthiness is True, call the decorated function.

Parameters:
  • form – Execute the proceeding function if form evaluates to True at some point in time.

  • args – Additional positional arguments to pass to the decorated function.

  • kwargs – Additional keyword arguments to pass to the decorated function.