surveyjs-expression-eval

Evaluate expressions from the SurveyJS standard.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
surveyjs-expression-eval
1.0.25 years ago5 years agoMinified + gzip package size for surveyjs-expression-eval in KB

Readme

SurveyJS Expression Eval
This module allows you to evaluate expressions using the SurveyJS language.
import evaluateExpression from "surveyjs-expression-eval"

evaluateExpression("{myvar} > {myothervar}", {
  myvar: 2,
  myothervar: 1
})
// true

See format.md for more examples and a list of operators.