RAD function: isExpressionValid

A RAD function that determines if a RAD expression is a valid expression of a specified data type.

Function

isExpressionValid

Format

$e = isExpressionValid(expr_string, type)

Parameters

expr_string is a RAD expression, and type is a basic data type of ITSMA Service Management.

Factors

  • It returns true or false.
  • It works the same way as the parse.evaluate() function,except that it does not send error messages to the client when the input string is invalid.

Examples

$x=isExpressionValid(“abc”,3) returns false
$x=isExpressionValid("date(tod()) + 5*24*60", 3) returns true