Test for valid calculation

Command groupFlag affectedReversibleExecute on clientPlatform(s)
CalculationsYESNONOAll

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 True 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