See if analyzer is operating in an interactive environment (e.g., in VisualText)
returnedBool = interactive()
returnedBool - type: bool
True if analyzer is in an interactive environment.
In standalone or embedded analyzer, can call nlp->setInteractive(bool) to set this (see the NLP.h API file in VisualText/include/API/lite/nlp.h).
@CODE
# In VisualText, send output to a file, but outside of VisualText, direct outputs to a user-supplied buffer.
if (interactive())
G("out") = "buf.txt";
else
G("out") = cbuf();
G("out") << "Hello output!" << "\n";
@@CODE