--- title: "evalCalc (Determine and calculate function expression)" slug: "calc-function-eval-calc" updated: 2026-05-12T12:57:40Z published: 2026-05-12T12:57:40Z canonical: "docs.lobstersoftware.com/calc-function-eval-calc" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # evalCalc (Determine and calculate function expression) > [!NOTE] > $evalCalc can be used to execute a function expression at runtime. > > The expression is determined and calculated at runtime. This function is exclusively needed to execute an expression which can be read from another place and cannot be formulated statically. > > > [!TIP] > > Tooltip > > > > Syntax: *$evalCalc(expression)* > > > > | Parameter | Description | > > | --- | --- | > > | `expression` | The function to be calculated as text, e.g. $el(3) or \{data field\}. | > > > > Returns the result of the expression. > > > > Example: $evalCalc({fieldThisExpressionContains}) – reads the value of the field and evaluates it as a function. ## Syntax *$evalCalc(expression)* ## Parameter | Name | Description | | --- | --- | | expression | The expression to be calculated as text, e.g. $el(3) or \{data field\}. | ## Return value The result of the function. ## Example | Syntax | Host object | Result | | --- | --- | --- | | `$evalCalc({formula})` | ```plaintext { "formula": "1+2" } ``` | `3` |