View Code? Open in Web Editor
NEW
Simple script engine to evaluate script expression
simple-script-engine's Introduction
- Supported 6 types of
operator
listed belows
EQUAL
NOT_EQUAL
LESS_THAN
NOT_MORE_THAN
MORE_THAN
NOT_LESS_THAN
script
format must be in ${
key}
operator
${
key}
and so on.
- Supported basic
operation
listed belows
ADDITION
SUBTRACTION
MULTIPLICATION
DIVISION
Compare
empty
string in refer to no.3
in Sample section.
"${PARAM_1} + ${PARAM_2} == ${PARAM_3}"
"${PARAM_4} == 20", "${PARAM_3} == 10"
"${PARAM_5} == "
"${PARAM_1} + ${PARAM_2} + ${PARAM_3} == 20"
"${PARAM_1} * ${PARAM_2} + ${PARAM_3} + ${PARAM_4} / ${PARAM_1} == 11"