Skip to content

TFPExpressionParser.Evaluate

Evaluate the current expression

Declaration

Source position: fpexprpars.pp line 783

public 
function TFPExpressionParser.Evaluate : TFPExpressionResult;

Description

The Evaluate method evaluates the currently parsed expression and returns the result as an TFPExpressionResult. It executes the complete expression tree and computes the final value.

The evaluation process includes resolving variables, calling functions, and performing all arithmetic and logical operations according to the expression structure and operator precedence rules.