Test for valid calculation

20% Command group 20% Flag affected 20% Reversible 20% Execute on client 20% Platform(s)
Calculations YES NO NO All

Syntax

Test for valid calculation {calculation}

Description

This command lets you test a calculation before it is evaluated. It is essential to test strings to be evaluated by the eval(), evalf() and fld() functions before doing the evaluation. The flag is set to kTrue if the calculation is valid.

Example

Calculate lCalculation as 'lBalance < 0'
Test for valid calculation {evalf(lCalculation)}
If flag true
  Do lAccountsList.$search(evalf(lCalculation))
End If