Develop > Programming > System Language reference > List: RAD functions > RAD function: evaluate_query

RAD function: evaluate_query

A RAD function that parses and evaluates a query.

Function

evaluate_query(query, f)

Format

evaluate_query(query, f)

Parameters

The following parameters are valid for the evaluate_query function:

Parameter Data type Description
1 Number The parsed query.
2 Number The data record.

Example

var f = new SCFile("probsummary");
var r = system.functions.evaluate_query("number=\"IM999999\"",f);
this.assertEquals("evaluate_query should be false",false, r);
r = system.functions.evaluate_query("true",f);
this.assertEquals("evaluate_query should be true",true, r);