Class |
RiTa
|
Name |
evaluate
|
Description |
Parses and executes a RiScript string. |
Example |
RiTa.evaluate("He was [happy | sad | indifferent]"); RiTa.evaluate("He was [happy | sad | $emo]", context);
|
Parameters |
String | the input |
---|
Object (or Map in Java) | the context for any referenced variables or functions (optional) |
---|
Object (or Map in Java) | (optional) options
{boolean} options.trace: if true, output verbose log to console for debugging (default=false)
{boolean} options.onepass: if true, run only one pass through engine(default=false)
{boolean} options.v2Compatible: if true, use RiScript v2-compatible syntax (default=false) |
---|
|
Returns |
String | the result of the evaluation |
---|
|
Related |
See RiScript documentation |
Note |
tmp_note |
Syntax |
RiTa.evaluate(string); RiTa.evaluate(string, context);
|
Constants |
See RiScript documentationConstants
|
Platform |
Java / JavaScript |
|
|