Wthen is a simple rule engine in Python, it is allowed to extract rules outside the program, but it's not business oriented. That means it is for developer or those whose are able to program with Python The name came from our daily speaking, when condition matched, then actions will be taken.
YAML to provide an easy understanding rule format.
The conditions (When) are evalated by Python
The actions (Then) are executed by Python
- Given scinario:
a (=2) > b (=1)
2 > 1is printed out code:yaml rules: