string_equation 1.0.0 copy "string_equation: ^1.0.0" to clipboard
string_equation: ^1.0.0 copied to clipboard

ConditionEquation is a powerful Dart package that allows you to dynamically evaluate both logical and mathematical expressions from a string format. It offers robust support for variables, making it h [...]

example/string_equation_example.dart

import 'package:string_equation/string_equation.dart';

void main() {
  bool value =
      ConditionEquation().evaluateExpression("((0.00==1)||((180.00>=180)&&(180.00<=400)&&(1.00<=300))||((1.00>=110)&&(1.00<=300)&&(180.00<=400)))");
  print(value);
}
2
likes
0
points
212
downloads

Publisher

unverified uploader

Weekly Downloads

ConditionEquation is a powerful Dart package that allows you to dynamically evaluate both logical and mathematical expressions from a string format. It offers robust support for variables, making it highly useful in scenarios where you need to parse, interpret, and compute expressions programmatically. Whether you're working on rule engines, dynamic forms, or data validation, ConditionEquation simplifies the process of handling complex expressions in your Dart applications.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

intl, vector_math

More

Packages that depend on string_equation