Evaluate method
Overview
Evaluates an expression as a string.
Parameters
Name | Description | Type |
---|---|---|
qExpression |
Expression to evaluate. |
String |
Outputs
The following is returned in the output:
"result": {
"qReturn": <expression evaluated as a string>
}
Example
The app used in this example is Golf quest.
The client sends:
{
"handle": 1,
"method": "Evaluate",
"params": {
"qExpression": "Sum(Holes)"
},
"id": 6,
"jsonrpc": "2.0"
}
The engine returns:
{
"jsonrpc": "2.0",
"id": 6,
"result": {
"qReturn": "361716"
}
}
Learn more
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!