Module expression

Module expression 

Source
Expand description

Expression evaluation (arithmetic operations) Expression Evaluator

This module provides runtime evaluation of arithmetic expressions similar to CLIPS (bind ?total (* ?quantity ?price))

Functions§

evaluate_expression
Evaluate an arithmetic expression with field references Example: “Order.quantity * Order.price” with facts containing Order.quantity=10, Order.price=100 Returns: Value::Integer(1000) or Value::Number(1000.0)