Reference

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
Stringthe 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
Stringthe result of the evaluation
Syntax
RiTa.evaluate(string);
RiTa.evaluate(string, context);
Platform Java / JavaScript