runRuleExpressions function

bool runRuleExpressions(
  1. String expression,
  2. String beforeReplacement,
  3. String identifier
)

Implementation

bool runRuleExpressions(
    String expression, String beforeReplacement, String identifier) {
  try {
    dynamic canEvalRule = dhisD2Functions(expression);
    return canEvalRule;
  } catch (e) {
    return false;
  }
}