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