Escalation Operator ||
When used as follows, the || operator is called the escalation operator.
The || operator can either be used like | or it can be used with Prompt, or Document (or compatible types such as java.io.InputStream or java.io.Reader) to create an escalating prompt, a day of week prompt, a time of day prompt, a random prompt or an escalating document, a day of week document or a time of day document.
The escalation || operator can be used to create escalation prompts/documents, day of week prompts/documents, time of day prompts/documents, time of week prompts/documents or random prompts. It is syntactically left-associative (it groups left-to-right). It is fully associative with respect to both side effects and result value; that is, for any expressions a, b, and c, evaluation of the expression ((a)||(b))||(c) produces the same result, with the same side effects occurring in the same order, as evaluation of the expression (a)||((b)||(c)).
EscalationExpression:
PromptEscalationExpression
DocumentEscalationExpression
The following topics describe a prompt escalation expression and a document escalation expression: