Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

EVALUATE$ returns the evaluation result of an expression in string format

Syntax

EVALUATE$(Expression$, [InpVar])

Arguments

  • Expression$ is  is the expression to be evaluated.
  • [InpVar] is an optional list of argument parameters.

...

  1. To avoid conflicts for the expression editor, use single quotes (') in Expression$ instead of the standard double quote ("). Quaestor replaces ' by " before evaluation. You are allowed to use standard functions of Queastor as well as defined parameters available in the solution.
  2. If parameters are not available or PENDING, EVALUATE$ returns "NullString" as result.

Examples

Example 1

The function returns the value of the expression in string format, e.g.: 

EVALUATE$("c^2+2", c)

returns "11" for c=3


Example 2

EVALUATE$("UCASE$('Qnowledge ') + 'Wageningen'")$

returns


"QNOWLEDGE Wageningen" 

Quick links: Function overview | Attribute overview | Constants overview | Dimensions overview