At the moment, I have PHP that sets a single variable based on the value of other independent variables in a linear format, for example:
$result = 0;
if ($var1 == 'X') {
$result += 10;
}
if ($var2 < 10) {
$result += 15;
}
elseif ($var2 > 50) {
$result -= 50;
}
However, I would like these rules to be expressed in a less programmable way, mainly because someone who does not know how to program can add / edit rules, and also because I might want to use the same rules in a Python or Perl script, without having to save copies in multiple languages. I could write my own simple language (because of a better word) and a parser, but I would prefer to use the existing solution, as this saves work and increases the likelihood that other people will know how to write rules in it.
/ ?