Base library for being able to define logical rules and conditional outcomes.