Dependent variable is: HAPPINESS
Independent variables are: A = LOVE, B = MONEY
Variable states are: 0 = NO, 1 = SOME AND 2 = LOTS
C = SOME A AND NO B OR SOME A AND SOME B OR SOME A AND LOTS B OR LOTS A AND NO B OR LOTS A AND SOME B OR LOTS A AND LOTS B
Note: This script is intended as proof of concept only and not for extensive use, that is use with more than a few variables or states. Submissions with too many variables or too many states will cause the server to abort execution if the server's allocated execution time limit is exceeded. For binary equations each state is shown as upper and lower case rather than as a numeric prefix for Polychotomous equations.